aboutsummaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2017-01-26 21:45:49 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:07 +0200
commit9a5991e31ce62795e7c606eb3942b6a0ff3d2fa4 (patch)
treecbaacb4e60c02434cf24e0ffdef96ca0c2fe16f5 /net/packet
parent8872ab4e6c8c9e06985d14aff562fa2daf80eb62 (diff)
net: packet: fix misleading-indentation warning
net/packet/af_packet.c: In function 'packet_set_ring': net/packet/af_packet.c:3712:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!tx_ring) ^~ net/packet/af_packet.c:3714:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' break; ^~~~~ Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index e13af5a5a..a1b47b4a3 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -3686,7 +3686,7 @@ static int packet_set_ring(struct sock *sk, union tpacket_req_u *req_u,
*/
if (!tx_ring)
init_prb_bdqc(po, rb, pg_vec, req_u, tx_ring);
- break;
+ break;
default:
break;
}