staging: wimax/i2400m: don't change the endianness of one byte variable
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Thu, 18 Feb 2021 09:21:54 +0000 (14:21 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:25 +0000 (09:25 +0100)
commit62964172d9c1178ed7015b0396628bbddd67bd4d
tree3443a317e305e36398a638aad56daa4639e29723
parent2917b109b36ac38ed258d488c993e1b867ad863b
staging: wimax/i2400m: don't change the endianness of one byte variable

It is wrong to change the endianness of a variable which has just one
byte size.

Sparse warnings fixed:
drivers/staging//wimax/i2400m/control.c:452:17: warning: cast to restricted __le32
drivers/staging//wimax/i2400m/control.c:452:17: warning: cast to restricted __le32
drivers/staging//wimax/i2400m/op-rfkill.c:159:14: warning: cast to restricted __le32
drivers/staging//wimax/i2400m/op-rfkill.c:160:14: warning: cast to restricted __le32

Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210218092154.GA46388@LEGION
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wimax/i2400m/control.c
drivers/staging/wimax/i2400m/op-rfkill.c