OSDN Git Service

staging: rtl8712: r8712_append_mpdu_unit(): Change return type
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 13 Aug 2019 04:46:36 +0000 (10:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 11:20:12 +0000 (13:20 +0200)
commitbc6132f141b75ea1ee67574bf44adfd0433cad17
tree0cce1a0f2b8fed2d1f32b0de46d3c58a8201e2a6
parent6da2422efbb7f7e11b7f81dcf62817891b311b85
staging: rtl8712: r8712_append_mpdu_unit(): Change return type

Change return type of r8712_append_mpdu_unit from u8 to void and remove
its return statement as it always returns only _SUCCESS. Modify call
sites to simply call this function instead of checking its return value,
and execute all the statements in the if-block for when the function
returns _SUCCESS.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190813044638.16348-2-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_xmit.c