From: Dan Carpenter Date: Fri, 7 Sep 2012 06:47:41 +0000 (+0300) Subject: HID: picoLCD: fix a NULL test in picolcd_raw_cir() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~104^2~2^4~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02d9be1aa6e93f4819f230a1d570e2ff415fa294;p=pandora-kernel.git HID: picoLCD: fix a NULL test in picolcd_raw_cir() Smatch complains that the NULL checking in this function is not consistent and could lead to a NULL dereference. The comments say that we should return here if rc_dev is NULL so I've changed the test to match the comment. Signed-off-by: Dan Carpenter Reviewed-by: Bruno Prémont Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed