mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
asus_acpi: remove misleading mask
led_out is boolean, so there is no functional change here, but apparently an extra mask with 1 caused some style checkers to flag this as logic bug. Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Luca Tettamanti <kronos.it@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
93d74463d0
commit
abc5a87f4e
1 changed files with 1 additions and 1 deletions
|
@ -610,7 +610,7 @@ write_led(const char __user * buffer, unsigned long count,
|
||||||
(led_out) ? (hotk->status | ledmask) : (hotk->status & ~ledmask);
|
(led_out) ? (hotk->status | ledmask) : (hotk->status & ~ledmask);
|
||||||
|
|
||||||
if (invert) /* invert target value */
|
if (invert) /* invert target value */
|
||||||
led_out = !led_out & 0x1;
|
led_out = !led_out;
|
||||||
|
|
||||||
if (!write_acpi_int(hotk->handle, ledname, led_out, NULL))
|
if (!write_acpi_int(hotk->handle, ledname, led_out, NULL))
|
||||||
printk(KERN_WARNING "Asus ACPI: LED (%s) write failed\n",
|
printk(KERN_WARNING "Asus ACPI: LED (%s) write failed\n",
|
||||||
|
|
Loading…
Reference in a new issue