aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-08 10:44:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-24 15:52:29 -0700
commit35299f884aa301deefb0881096e6d88d0964c94b (patch)
tree0374f2993b77ded80f3710e94b285feafa883ef4 /drivers/misc
parentpc8736x_gpio: use platform_device_unregister in pc8736x_gpio_cleanup() (diff)
downloadlinux-dev-35299f884aa301deefb0881096e6d88d0964c94b.tar.xz
linux-dev-35299f884aa301deefb0881096e6d88d0964c94b.zip
drivers:misc: ti-st: fix potential NULL pointer dereference in st_register()
Remove the pointless NULL dereference above the NULL test. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ti-st/st_core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
index 46937b107261..b90a2241d79c 100644
--- a/drivers/misc/ti-st/st_core.c
+++ b/drivers/misc/ti-st/st_core.c
@@ -511,7 +511,6 @@ long st_register(struct st_proto_s *new_proto)
unsigned long flags = 0;
st_kim_ref(&st_gdata, 0);
- pr_info("%s(%d) ", __func__, new_proto->chnl_id);
if (st_gdata == NULL || new_proto == NULL || new_proto->recv == NULL
|| new_proto->reg_complete_cb == NULL) {
pr_err("gdata/new_proto/recv or reg_complete_cb not ready");