Skip to content

Commit 66abf01

Browse files
melikeyurtoglugregkh
authored andcommitted
staging: rtl8192e: Remove unneeded void return
Fixes "void function return statements are not generally useful"checkpatch.pl warning Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4dc5afd commit 66abf01

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/staging/rtl8192e/rtllib_tx.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
354354
tcb_desc->ampdu_factor = 0;
355355
break;
356356
}
357-
return;
358357
}
359358

360359
static void rtllib_qurey_ShortPreambleMode(struct rtllib_device *ieee,
@@ -366,7 +365,6 @@ static void rtllib_qurey_ShortPreambleMode(struct rtllib_device *ieee,
366365
else if (ieee->current_network.capability &
367366
WLAN_CAPABILITY_SHORT_PREAMBLE)
368367
tcb_desc->bUseShortPreamble = true;
369-
return;
370368
}
371369

372370
static void rtllib_query_HTCapShortGI(struct rtllib_device *ieee,
@@ -408,7 +406,6 @@ static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
408406
if (pHTInfo->bCurBW40MHz && pHTInfo->bCurTxBW40MHz &&
409407
!ieee->bandwidth_auto_switch.bforced_tx20Mhz)
410408
tcb_desc->bPacketBW = true;
411-
return;
412409
}
413410

414411
static void rtllib_query_protectionmode(struct rtllib_device *ieee,

0 commit comments

Comments
 (0)