mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-20 04:24:13 +00:00
HID: appleir: Remove unnecessary goto label
Signed-off-by: Lucas Tanure <tanure@linux.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
278de45e14
commit
b08e8d8a50
@ -284,10 +284,8 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id)
|
||||
struct appleir *appleir;
|
||||
|
||||
appleir = kzalloc(sizeof(struct appleir), GFP_KERNEL);
|
||||
if (!appleir) {
|
||||
ret = -ENOMEM;
|
||||
goto allocfail;
|
||||
}
|
||||
if (!appleir)
|
||||
return -ENOMEM;
|
||||
|
||||
appleir->hid = hid;
|
||||
|
||||
@ -314,7 +312,6 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id)
|
||||
return 0;
|
||||
fail:
|
||||
kfree(appleir);
|
||||
allocfail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user