]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/hamradio/6pack: Fix inconsistent indenting
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 25 May 2021 10:55:45 +0000 (18:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2021 22:28:12 +0000 (15:28 -0700)
Eliminate the follow smatch warning:

drivers/net/hamradio/6pack.c:728 sixpack_ioctl() warn: inconsistent
indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/6pack.c

index 80f41945709f98edfa6f9e9c6241ec7bc6407dcd..a15cc5e502902c0f6ca32cd491dc175a73d765e6 100644 (file)
@@ -716,11 +716,11 @@ static int sixpack_ioctl(struct tty_struct *tty, struct file *file,
                err = 0;
                break;
 
-        case SIOCSIFHWADDR: {
-               char addr[AX25_ADDR_LEN];
+       case SIOCSIFHWADDR: {
+                       char addr[AX25_ADDR_LEN];
 
-               if (copy_from_user(&addr,
-                                  (void __user *) arg, AX25_ADDR_LEN)) {
+                       if (copy_from_user(&addr,
+                                          (void __user *)arg, AX25_ADDR_LEN)) {
                                err = -EFAULT;
                                break;
                        }
@@ -728,11 +728,9 @@ static int sixpack_ioctl(struct tty_struct *tty, struct file *file,
                        netif_tx_lock_bh(dev);
                        memcpy(dev->dev_addr, &addr, AX25_ADDR_LEN);
                        netif_tx_unlock_bh(dev);
-
                        err = 0;
                        break;
                }
-
        default:
                err = tty_mode_ioctl(tty, file, cmd, arg);
        }