]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/misc/mei/main.c
staging/mei: fix check for allocating host client id
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 13 Nov 2011 07:41:15 +0000 (09:41 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:05:14 +0000 (16:05 -0800)
commit6f37aca827e6d075c9e9d3ab1b233cce2a3bc9f1
tree1f9ee8eb97c59067abcea271a8e4209f8920c6bf
parent5b881e3c08a8041604bd60117cca22e1ff026e9b
staging/mei: fix check for allocating host client id

MEI_CLIENTS_MAX is 255 and host_client_id is u8 therefore
for check to work we need to first assign the return value
of find_first_zero_bit to unsigned long variable

Fix warning

drivers/staging/mei/main.c: In function mei_open
drivers/staging/mei/main.c:260:2: warning: comparison is always false due to limited range of data type

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/mei/main.c