staging/frontier: fix checkpatch warnings
authorToshiaki Yamane <yamanetoshi@gmail.com>
Thu, 19 Jul 2012 01:08:42 +0000 (10:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:11:26 +0000 (16:11 -0700)
The below checkpatch warns was fixed,

drivers/staging/frontier/tranzport.c:356: WARNING: Prefer pr_err(... to printk(KERN_ERR, ...
drivers/staging/frontier/tranzport.c:523: WARNING: Prefer pr_err(... to printk(KERN_ERR, ...
drivers/staging/frontier/tranzport.c:696: WARNING: Prefer pr_err(... to printk(KERN_ERR, ...
drivers/staging/frontier/alphatrack.c:336: WARNING: Prefer pr_err(... to printk(KERN_ERR, ...
drivers/staging/frontier/alphatrack.c:497: WARNING: Prefer pr_err(... to printk(KERN_ERR, ...
drivers/staging/frontier/alphatrack.c:568: WARNING: Prefer pr_err(... to printk(KERN_ERR, ...

Signed-off-by: Toshiaki Yamane <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/frontier/alphatrack.c
drivers/staging/frontier/tranzport.c

index acbb2cc510f9b02f39feeb907987afa3a1161aea..33085782689ed8c5a82f426bf7f088d974811ad8 100644 (file)
@@ -333,7 +333,7 @@ static int usb_alphatrack_open(struct inode *inode, struct file *file)
        interface = usb_find_interface(&usb_alphatrack_driver, subminor);
 
        if (!interface) {
-               printk(KERN_ERR "%s - error, can't find device for minor %d\n",
+               pr_err("%s - error, can't find device for minor %d\n",
                       __func__, subminor);
                retval = -ENODEV;
                goto unlock_disconnect_exit;
@@ -494,7 +494,7 @@ static ssize_t usb_alphatrack_read(struct file *file, char __user *buffer,
        /* verify that the device wasn't unplugged */
        if (dev->intf == NULL) {
                retval = -ENODEV;
-               printk(KERN_ERR "%s: No device or device unplugged %d\n",
+               pr_err("%s: No device or device unplugged %d\n",
                       __func__, retval);
                goto unlock_exit;
        }
@@ -565,7 +565,7 @@ static ssize_t usb_alphatrack_write(struct file *file,
        /* verify that the device wasn't unplugged */
        if (dev->intf == NULL) {
                retval = -ENODEV;
-               printk(KERN_ERR "%s: No device or device unplugged %d\n",
+               pr_err("%s: No device or device unplugged %d\n",
                       __func__, retval);
                goto unlock_exit;
        }
index 376706f1c71248da6e81310e4c4ec1137a4af86a..5196a4e053e6f96d8112677ee89db5f7e53e9bd2 100644 (file)
@@ -353,8 +353,8 @@ static int usb_tranzport_open(struct inode *inode, struct file *file)
        interface = usb_find_interface(&usb_tranzport_driver, subminor);
 
        if (!interface) {
-               printk(KERN_ERR "%s - error, can't find device for minor %d\n",
-                       __func__, subminor);
+               pr_err("%s - error, can't find device for minor %d\n",
+                      __func__, subminor);
                retval = -ENODEV;
                goto unlock_disconnect_exit;
        }
@@ -520,8 +520,8 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer,
        /* verify that the device wasn't unplugged */
        if (dev->intf == NULL) {
                retval = -ENODEV;
-               printk(KERN_ERR "%s: No device or device unplugged %d\n",
-                       __func__, retval);
+               pr_err("%s: No device or device unplugged %d\n",
+                      __func__, retval);
                goto unlock_exit;
        }
 
@@ -693,8 +693,8 @@ static ssize_t usb_tranzport_write(struct file *file,
        /* verify that the device wasn't unplugged */
        if (dev->intf == NULL) {
                retval = -ENODEV;
-               printk(KERN_ERR "%s: No device or device unplugged %d\n",
-                       __func__, retval);
+               pr_err("%s: No device or device unplugged %d\n",
+                      __func__, retval);
                goto unlock_exit;
        }
 
This page took 0.026862 seconds and 5 git commands to generate.