diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/ati_remote.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/rc/ati_remote.c b/drivers/media/rc/ati_remote.c index 08aede5ffaeb..49bb356ed14c 100644 --- a/drivers/media/rc/ati_remote.c +++ b/drivers/media/rc/ati_remote.c | |||
@@ -937,8 +937,10 @@ static int ati_remote_probe(struct usb_interface *interface, | |||
937 | /* Set up and register mouse input device */ | 937 | /* Set up and register mouse input device */ |
938 | if (mouse) { | 938 | if (mouse) { |
939 | input_dev = input_allocate_device(); | 939 | input_dev = input_allocate_device(); |
940 | if (!input_dev) | 940 | if (!input_dev) { |
941 | err = -ENOMEM; | ||
941 | goto fail4; | 942 | goto fail4; |
943 | } | ||
942 | 944 | ||
943 | ati_remote->idev = input_dev; | 945 | ati_remote->idev = input_dev; |
944 | ati_remote_input_init(ati_remote); | 946 | ati_remote_input_init(ati_remote); |