]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Stagind:dgnc: Fixed unnecessary braces for single statement blocks
authorIulia Manda <iulia.manda21@gmail.com>
Mon, 10 Mar 2014 22:09:11 +0000 (00:09 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Tue, 11 Mar 2014 05:58:25 +0000 (22:58 -0700)
Deleted unnecessary braces for single statement if blocks.

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/dgnc/dgnc_mgmt.c

index d66517d603a5823a2933604243fedabd30a3bb11..253547556d9b8273f2d18bacad7b31aed26d2c87 100644 (file)
@@ -106,9 +106,8 @@ int dgnc_mgmt_close(struct inode *inode, struct file *file)
 
        /* mgmt device */
        if (minor < MAXMGMTDEVICES) {
-               if (dgnc_mgmt_in_use[minor]) {
+               if (dgnc_mgmt_in_use[minor])
                        dgnc_mgmt_in_use[minor] = 0;
-               }
        }
        DGNC_UNLOCK(dgnc_global_lock, lock_flags);
 
@@ -164,9 +163,8 @@ long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 
                struct digi_info di;
 
-               if (copy_from_user(&brd, uarg, sizeof(int))) {
+               if (copy_from_user(&brd, uarg, sizeof(int)))
                        return -EFAULT;
-               }
 
                DPR_MGMT(("DIGI_GETBD asking about board: %d\n", brd));
 
@@ -208,9 +206,8 @@ long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
                uint board = 0;
                uint channel = 0;
 
-               if (copy_from_user(&ni, uarg, sizeof(ni))) {
+               if (copy_from_user(&ni, uarg, sizeof(ni)))
                        return -EFAULT;
-               }
 
                DPR_MGMT(("DIGI_GETBD asking about board: %d channel: %d\n",
                        ni.board, ni.channel));