HID: intel-ish-hid: Remove unnecessary assignment to variable rv

This assignment to rv is unused in an error path. So remove it.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Jing Xiangfeng 2020-11-10 11:20:49 +08:00 коммит произвёл Jiri Kosina
Родитель d5530d82ef
Коммит 9735d9deb1
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -211,10 +211,8 @@ int ishtp_hid_probe(unsigned int cur_hid_dev,
struct ishtp_hid_data *hid_data;
hid = hid_allocate_device();
if (IS_ERR(hid)) {
rv = PTR_ERR(hid);
return -ENOMEM;
}
if (IS_ERR(hid))
return PTR_ERR(hid);
hid_data = kzalloc(sizeof(*hid_data), GFP_KERNEL);
if (!hid_data) {