[PATCH -next] HID: intel-ish-hid: simplify the return expression of ishtp_hid_parse

From: Liu Shixin
Date: Mon Sep 21 2020 - 04:04:00 EST


Simplify the return expression.

Signed-off-by: Liu Shixin <liushixin2@xxxxxxxxxx>
---
drivers/hid/intel-ish-hid/ishtp-hid.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/hid/intel-ish-hid/ishtp-hid.c b/drivers/hid/intel-ish-hid/ishtp-hid.c
index b8aae69ad15d..edf5ae942508 100644
--- a/drivers/hid/intel-ish-hid/ishtp-hid.c
+++ b/drivers/hid/intel-ish-hid/ishtp-hid.c
@@ -22,14 +22,9 @@ static int ishtp_hid_parse(struct hid_device *hid)
{
struct ishtp_hid_data *hid_data = hid->driver_data;
struct ishtp_cl_data *client_data = hid_data->client_data;
- int rv;
-
- rv = hid_parse_report(hid, client_data->report_descr[hid_data->index],
- client_data->report_descr_size[hid_data->index]);
- if (rv)
- return rv;

- return 0;
+ return hid_parse_report(hid, client_data->report_descr[hid_data->index],
+ client_data->report_descr_size[hid_data->index]);
}

/* Empty callbacks with success return code */
--
2.25.1