libertas: remove two libertas sparse warning
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Wed, 29 Oct 2008 09:35:02 +0000 (10:35 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 29 Oct 2008 21:54:34 +0000 (17:54 -0400)
commit87bf24f3d2e076468deaa5181d44184887072904
tree64f5a626b074f5f35de310e3a90a078ebd7c98ed
parent10d0bd56966571d0324dfd9bbb8aa913a60bef5f
libertas: remove two libertas sparse warning

Johannes Berg detected this two sparse warnings:

drivers/net/wireless/libertas/cmd.c:609:16: warning: cast to restricted __le16
drivers/net/wireless/libertas/cmd.c:611:16: warning: cast to restricted __le16

... but cmd.minlevel is "s8", so we can access it directly and hope
for the sign-extension-code in the compiler to convert that to the
"s16" type.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c