]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging wlan-ng: fix type mismatch warnings in mkpdrlist()
authorMaciek Borzecki <maciek.borzecki@gmail.com>
Sat, 8 Apr 2017 14:04:42 +0000 (16:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 14:54:17 +0000 (16:54 +0200)
commit76b4580bf4eaf1c7d5a603c0da405e72a89b3927
tree1ca85505c900da7a07f35cfeeec99a1f27d14e7d
parent2bbd5023ee09c8df507f7a6ed5ab45fc619a7ff6
staging wlan-ng: fix type mismatch warnings in mkpdrlist()

struct  hfa384x_pdrec len and code fields as clearly little endian,
mark both fields as such. pda->buf is also clearly little endian.

Fixes sparse warnings:

  drivers/staging/wlan-ng/prism2fw.c:613:16: warning: cast to restricted __le16
  drivers/staging/wlan-ng/prism2fw.c:616:21: warning: cast to restricted __le16
  drivers/staging/wlan-ng/prism2fw.c:625:21: warning: cast to restricted __le16

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x.h
drivers/staging/wlan-ng/prism2fw.c