diff mbox

[net-next] appletalk: fix a coccinella warning in net/appletalk/ddp.c

Message ID 53B657EC.6060105@huawei.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

wangweidong July 4, 2014, 7:29 a.m. UTC
This warning is introduced by commit 7b30600cc6 ("appletalk:
fix checkpatch error with indent"), So fix it.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
---
 net/appletalk/ddp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller July 8, 2014, 9:32 p.m. UTC | #1
From: Wang Weidong <wangweidong1@huawei.com>
Date: Fri, 4 Jul 2014 15:29:48 +0800

> This warning is introduced by commit 7b30600cc6 ("appletalk:
> fix checkpatch error with indent"), So fix it.
> 
> Signed-off-by: Wang Weidong <wangweidong1@huawei.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c
index 01a1082..8ceabc0 100644
--- a/net/appletalk/ddp.c
+++ b/net/appletalk/ddp.c
@@ -1808,7 +1808,7 @@  static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
 		long amount = 0;
 
 		if (skb)
-		amount = skb->len - sizeof(struct ddpehdr);
+			amount = skb->len - sizeof(struct ddpehdr);
 		rc = put_user(amount, (int __user *)argp);
 		break;
 	}