aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft-bus.c
diff options
context:
space:
mode:
authorHaneen Mohammed <hamohammed.sa@gmail.com>2015-03-06 20:01:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 15:54:41 -0800
commit14f63eeecfa3ca092f1c83755303161e53a9c641 (patch)
tree46ff6daace6515a873b4ddf17ba7395c111b053e /drivers/staging/fbtft/fbtft-bus.c
parentStaging: comedi: Clean dev_err() logging (diff)
downloadlinux-dev-14f63eeecfa3ca092f1c83755303161e53a9c641.tar.xz
linux-dev-14f63eeecfa3ca092f1c83755303161e53a9c641.zip
Staging: media: Replace dev_err with pr_err to avoid null pointer derefrence
This patch replace dev_err with pr_err, for pointer is derefrenced after comparing it to NULL. This was found using the following coccinelle script: @disable is_null@ identifier f; expression E; identifier fld; statement S; @@ + if(E == NULL) S f(...,E->fld,...); -if(E == NULL) S; @@ identifier f; expression E; identifier fld; statement S; @@ + if(!E) S f(...,E->fld,...); -if(!E) S; Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft-bus.c')
0 files changed, 0 insertions, 0 deletions