Message ID | 7f75cfeb-9fdd-4d07-827b-0c76d6679689@web.de |
---|---|
State | New |
Headers | show |
Series | HID: amd_sfh: Use amd_sfh_clear_intr(mp2) call only once in sfh_init_work() | expand |
diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c index 0c28ca349bcd..2322555e5181 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c +++ b/drivers/hid/amd-sfh-hid/amd_sfh_pcie.c @@ -350,13 +350,12 @@ static void sfh_init_work(struct work_struct *work) int rc; rc = amd_sfh_hid_client_init(mp2); + amd_sfh_clear_intr(mp2); if (rc) { - amd_sfh_clear_intr(mp2); dev_err(&pdev->dev, "amd_sfh_hid_client_init failed err %d\n", rc); return; } - amd_sfh_clear_intr(mp2); mp2->init_done = 1; }