提交 6371fe54 编写于 作者: B Bojan Prtvar 提交者: Jiri Kosina

HID: zydacron: kfree() NULL pointer cleanup

Checking for NULL pointers before kfree() is redundant.
Signed-off-by: NBojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 f5fc8790
......@@ -201,9 +201,7 @@ static void zc_remove(struct hid_device *hdev)
struct zc_device *zc = hid_get_drvdata(hdev);
hid_hw_stop(hdev);
if (NULL != zc)
kfree(zc);
kfree(zc);
}
static const struct hid_device_id zc_devices[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册