Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a461466

Browse files
MakwanaVihasgregkh
authored andcommitted
staging: r8188eu: drop redundant if check in IS_MCAST
The if check is redundant. Drop it and simplify the funciton. Signed-off-by: Vihas Makwana <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 09ff203 commit a461466

File tree

1 file changed

+1
-4
lines changed
  • drivers/staging/r8188eu/include

1 file changed

+1
-4
lines changed

drivers/staging/r8188eu/include/wifi.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,7 @@ enum WIFI_REG_DOMAIN {
240240

241241
static inline bool IS_MCAST(unsigned char *da)
242242
{
243-
if ((*da) & 0x01)
244-
return true;
245-
else
246-
return false;
243+
return (*da) & 0x01;
247244
}
248245

249246
static inline unsigned char *get_da(unsigned char *pframe)

0 commit comments

Comments
 (0)