Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: xbox_remote: xbox_remote_initialize() cannot fail

It cannot fail. Make it void.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Oliver Neukum and committed by
Mauro Carvalho Chehab
2cb5cadf 6f2f124a

+3 -7
+3 -7
drivers/media/rc/xbox_remote.c
··· 163 163 rdev->dev.parent = &xbox_remote->interface->dev; 164 164 } 165 165 166 - static int xbox_remote_initialize(struct xbox_remote *xbox_remote, 167 - struct usb_endpoint_descriptor *endpoint_in) 166 + static void xbox_remote_initialize(struct xbox_remote *xbox_remote, 167 + struct usb_endpoint_descriptor *endpoint_in) 168 168 { 169 169 struct usb_device *udev = xbox_remote->udev; 170 170 int pipe, maxp; ··· 177 177 usb_fill_int_urb(xbox_remote->irq_urb, udev, pipe, xbox_remote->inbuf, 178 178 maxp, xbox_remote_irq_in, xbox_remote, 179 179 endpoint_in->bInterval); 180 - 181 - return 0; 182 180 } 183 181 184 182 /* ··· 247 249 xbox_remote_rc_init(xbox_remote); 248 250 249 251 /* Device Hardware Initialization */ 250 - err = xbox_remote_initialize(xbox_remote, endpoint_in); 251 - if (err) 252 - goto exit_kill_urbs; 252 + xbox_remote_initialize(xbox_remote, endpoint_in); 253 253 254 254 /* Set up and register rc device */ 255 255 err = rc_register_device(xbox_remote->rdev);