diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-11-10 04:20:49 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-11-25 13:56:00 +0100 |
commit | 9735d9deb109afaab747fb853b804cb5dc144c0a (patch) | |
tree | a4f0d2b8d8caa1092c3a887df979e6ae2381ca92 /drivers/hid | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid... (diff) | |
download | linux-9735d9deb109afaab747fb853b804cb5dc144c0a.tar.xz linux-9735d9deb109afaab747fb853b804cb5dc144c0a.zip |
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp-hid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp-hid.c b/drivers/hid/intel-ish-hid/ishtp-hid.c index b8aae69ad15d..393bed0abee9 100644 --- a/drivers/hid/intel-ish-hid/ishtp-hid.c +++ b/drivers/hid/intel-ish-hid/ishtp-hid.c @@ -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) { |