net/hamradio/6pack: Fix inconsistent indenting
Subsystems (2)
PATCH 1/1 net/hamradio/6pack: Fix inconsistent indenting
Eliminate the follow smatch warning:
drivers/net/hamradio/6pack.c:728 sixpack_ioctl() warn: inconsistent indenting.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/net/hamradio/6pack.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/net/hamradio/6pack.c +4 -6
@@ -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); }
Signature · 1 line
1.8.3.1
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 9 lines · On Tue, 25 May 2021 18:55:45 +0800 you wrote:
Eliminate the follow smatch warning:
drivers/net/hamradio/6pack.c:728sixpack_ioctl()warn: inconsistent indenting.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>[...]
Here is the summary with links:
- net/hamradio/6pack: Fix inconsistent indenting
https://git.kernel.org/netdev/net-next/c/687c87adc11a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html