Staging: xgifb: vb_util: Fixed sparse warning of bit truncation due to cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 1 Oct 2015 21:27:03 +0000 (02:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:36:00 +0000 (11:36 +0200)
commitd1e9aef604da38a4963998922ed0ffff675e3ede
treef2a8962dd1b62ea9550ad7520801d408e27cf4f3
parent1657183fcc4e044b2e96bcb9150265027ad2b44b
Staging: xgifb: vb_util: Fixed sparse warning of bit truncation due to cast

Fixed the warning generated by sparse that 'cast truncates bits from
constant value' by typecasting unsigned values to u8 as their logical
operation is being performed with and stored in a u8 type variable.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_util.h