Commit b08e8d8a authored by Lucas Tanure's avatar Lucas Tanure Committed by Jiri Kosina

HID: appleir: Remove unnecessary goto label

Signed-off-by: default avatarLucas Tanure <tanure@linux.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 278de45e
...@@ -284,10 +284,8 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) ...@@ -284,10 +284,8 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id)
struct appleir *appleir; struct appleir *appleir;
appleir = kzalloc(sizeof(struct appleir), GFP_KERNEL); appleir = kzalloc(sizeof(struct appleir), GFP_KERNEL);
if (!appleir) { if (!appleir)
ret = -ENOMEM; return -ENOMEM;
goto allocfail;
}
appleir->hid = hid; appleir->hid = hid;
...@@ -314,7 +312,6 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id) ...@@ -314,7 +312,6 @@ static int appleir_probe(struct hid_device *hid, const struct hid_device_id *id)
return 0; return 0;
fail: fail:
kfree(appleir); kfree(appleir);
allocfail:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment