From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Sun, 21 Aug 2016 13:26:09 +0200 The local variable "dev" was initialised despite of the detail that it was immediately reassigned by the following statement. Thus remove such unnecessary specifications. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- drivers/usb/misc/iowarrior.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index 8ae01b0..6048f97 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c @@ -468,7 +468,7 @@ exit: static long iowarrior_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { - struct iowarrior *dev = NULL; + struct iowarrior *dev; __u8 *buffer; __u8 __user *user_buffer; int retval; @@ -751,7 +751,7 @@ static int iowarrior_probe(struct usb_interface *interface, const struct usb_device_id *id) { struct usb_device *udev = interface_to_usbdev(interface); - struct iowarrior *dev = NULL; + struct iowarrior *dev; struct usb_host_interface *iface_desc; struct usb_endpoint_descriptor *endpoint; int i; -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html