Commit b377ed4c authored by Rajbinder Brar's avatar Rajbinder Brar Committed by Greg Kroah-Hartman

Staging: vt6656: Removing else after break statement to fix warning

This patch fixes the checkpatch.pl warning in baseband.c file
WARNING: else is not useful after a break or return
Signed-off-by: default avatarRajbinder Brar <brar.rajbinder@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dbc6ee63
...@@ -167,7 +167,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type, ...@@ -167,7 +167,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
frame_time++; frame_time++;
return preamble + frame_time; return preamble + frame_time;
} else { }
frame_time = (frame_length * 8 + 22) / rate; frame_time = (frame_length * 8 + 22) / rate;
tmp = ((frame_time * rate) - 22) / 8; tmp = ((frame_time * rate) - 22) / 8;
...@@ -178,9 +178,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type, ...@@ -178,9 +178,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
if (pkt_type != PK_TYPE_11A) if (pkt_type != PK_TYPE_11A)
frame_time += 6; frame_time += 6;
return 20 + frame_time; return 20 + frame_time;
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment