Re: [PATCH] staging: vt6656: Use BIT() macro instead of bit shift operator

2020-04-13 Thread Greg Kroah-Hartman
On Sun, Apr 12, 2020 at 11:33:11AM +0200, Oscar Carter wrote: > Use the BIT() macro instead of the bit left shift operator. So the code > is more clear. > > It's safe to remove the casting to u16 type because the value obtained > never exceeds 16 bits. So the casting is unnecessary. > > Signed-of

[PATCH] staging: vt6656: Use BIT() macro instead of bit shift operator

2020-04-12 Thread Oscar Carter
Use the BIT() macro instead of the bit left shift operator. So the code is more clear. It's safe to remove the casting to u16 type because the value obtained never exceeds 16 bits. So the casting is unnecessary. Signed-off-by: Oscar Carter --- drivers/staging/vt6656/card.c | 8 1 file