leds: lp50xx: Get rid of redundant explicit casting
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 16 Feb 2021 15:50:47 +0000 (17:50 +0200)
committerPavel Machek <pavel@ucw.cz>
Fri, 19 Feb 2021 21:15:50 +0000 (22:15 +0100)
commitb0a82efa51ad3ba1117817817cbabe9c9a37b893
treed1e4166163add9567794c5fbcd8f20e4e26ccf5c
parentfb0f236beccbf74da90429d417864cfc6fc6673a
leds: lp50xx: Get rid of redundant explicit casting

In the line like

u32 bar = ...;
u8 foo = (u8)(bar >> 8) & 0xff;

is no need to have neither explicit casting nor ' & 0xff' part.
Get rid of them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lp50xx.c