mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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: Rajbinder Brar <brar.rajbinder@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dbc6ee63d4
commit
b377ed4cce
1 changed files with 11 additions and 13 deletions
|
@ -167,20 +167,18 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
|
|||
frame_time++;
|
||||
|
||||
return preamble + frame_time;
|
||||
} else {
|
||||
frame_time = (frame_length * 8 + 22) / rate;
|
||||
tmp = ((frame_time * rate) - 22) / 8;
|
||||
|
||||
if (frame_length != tmp)
|
||||
frame_time++;
|
||||
|
||||
frame_time = frame_time * 4;
|
||||
|
||||
if (pkt_type != PK_TYPE_11A)
|
||||
frame_time += 6;
|
||||
|
||||
return 20 + frame_time;
|
||||
}
|
||||
frame_time = (frame_length * 8 + 22) / rate;
|
||||
tmp = ((frame_time * rate) - 22) / 8;
|
||||
|
||||
if (frame_length != tmp)
|
||||
frame_time++;
|
||||
|
||||
frame_time = frame_time * 4;
|
||||
|
||||
if (pkt_type != PK_TYPE_11A)
|
||||
frame_time += 6;
|
||||
return 20 + frame_time;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue