Message ID | e04a936f-9925-3808-9274-6cffe3c63cc3@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/hid/hid-saitek.c b/drivers/hid/hid-saitek.c index 39e642686ff0..49355ceddd85 100644 --- a/drivers/hid/hid-saitek.c +++ b/drivers/hid/hid-saitek.c @@ -45,10 +45,8 @@ static int saitek_probe(struct hid_device *hdev, int ret; ssc = devm_kzalloc(&hdev->dev, sizeof(*ssc), GFP_KERNEL); - if (ssc == NULL) { - hid_err(hdev, "can't alloc saitek descriptor\n"); + if (!ssc) return -ENOMEM; - } ssc->quirks = quirks; ssc->mode = -1;