]> www.infradead.org Git - users/dwmw2/linux.git/commit
mei: bus: suppress sign-compare warnings
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 15 Jul 2018 11:41:18 +0000 (14:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2018 11:29:35 +0000 (13:29 +0200)
commit7f3838fb8c03d8ef52792ac3654a0b5f79a673e5
treeade9a51ed6959c86f9dd9091a5b877b08f300cea
parentd9995a0fab40af333b08902ad43a387843ca0e17
mei: bus: suppress sign-compare warnings

Comparison between signed and unsigned warnings
and associated type promotion may cause error
condition not be detected.
The type promotion issue in mei bus was addressed by two patches:
commit b40b3e9358fb ("mei: bus: type promotion bug in mei_nfc_if_version()")
commit cf1ed2c59b98 ("mei: bus: type promotion bug in mei_fwver()")
Now it is possible to suppress the warning, by adding proper
casting to move out of radar.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus-fixup.c