]> bbs.cooldavid.org Git - net-next-2.6.git/commit
HID: picolcd: testing the wrong variable
authorDan Carpenter <error27@gmail.com>
Fri, 6 Aug 2010 12:51:10 +0000 (14:51 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 6 Aug 2010 12:51:10 +0000 (14:51 +0200)
commita106025015c8d24af6518aba3ac19c4dc9098b7c
treeca9b00e352edd8707c45cffbd514dd2a96418fd3
parent3cfc2c42c1cbc8e238bb9c0612c0df4565e3a8b4
HID: picolcd: testing the wrong variable

"ref_cnt" is a point to the reference count and it's non-null.  We really
want to test the reference count itself.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd.c