Message ID | 83d48f20-dd03-00fc-bfea-cd4a87b7254c@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c index 25b7bd56ae11..d739dd3aa622 100644 --- a/drivers/hid/hid-apple.c +++ b/drivers/hid/hid-apple.c @@ -374,10 +374,8 @@ static int apple_probe(struct hid_device *hdev, int ret; asc = devm_kzalloc(&hdev->dev, sizeof(*asc), GFP_KERNEL); - if (asc == NULL) { - hid_err(hdev, "can't alloc apple descriptor\n"); + if (!asc) return -ENOMEM; - } asc->quirks = quirks;