HID: prodikeys: kfree() NULL pointer cleanup
authorBojan Prtvar <prtvar.b@gmail.com>
Thu, 4 Aug 2011 21:46:48 +0000 (23:46 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 4 Aug 2011 21:51:29 +0000 (23:51 +0200)
commit00b15628b0aa73199f74bd6c988b8d2b55f51190
tree3653775b8ba5dbdf9ce150e8bc7c98b10ae037ac
parent6371fe54b500f1f31033e0035a061fa320171930
HID: prodikeys: kfree() NULL pointer cleanup

No need for freeing pm in case when it's not allocated.

Reported-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-prodikeys.c