aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/misc/iowarrior.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
index d372fbc4effb..c86c132d8aae 100644
--- a/drivers/usb/misc/iowarrior.c
+++ b/drivers/usb/misc/iowarrior.c
@@ -351,7 +351,7 @@ static ssize_t iowarrior_write(struct file *file,
351 351
352 mutex_lock(&dev->mutex); 352 mutex_lock(&dev->mutex);
353 /* verify that the device wasn't unplugged */ 353 /* verify that the device wasn't unplugged */
354 if (dev == NULL || !dev->present) { 354 if (!dev->present) {
355 retval = -ENODEV; 355 retval = -ENODEV;
356 goto exit; 356 goto exit;
357 } 357 }