HID: pidff: effect can't be NULL
authorJiri Kosina <jkosina@suse.cz>
Fri, 27 Mar 2015 15:03:26 +0000 (16:03 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 27 Mar 2015 15:03:26 +0000 (16:03 +0100)
commitb9e9cd32ba33d13c7ecbc15b9f4418beded403d2
tree84667f0d19e7b0768f98dabfe2c97d0320ff43b2
parentf1088b38ff486653f8645e2dff74e2a1397f9e31
HID: pidff: effect can't be NULL

Force-beedback core guarantees that the 'effect' pointer that's being passed
to ->upload() callback is non-NULL.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-pidff.c