Re: (subset) [PATCH] leds: Refactor st1202_led_set to use !! operator for boolean conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Feb 2025 10:42:02 +0800, xiaopeitux@xxxxxxxxxxx wrote:
> cocci warnings:
>     drivers/leds/leds-st1202.c:194:66-71: WARNING: conversion to bool not
> needed here.
> 
> st1202_led_set function now uses the !! operator to convert the
> enum led_brightness value to a boolean active state, which is then
> passed to the st1202_channel_set function. This change maintains the
> existing functionality.
> 
> [...]

Applied, thanks!

[1/1] leds: Refactor st1202_led_set to use !! operator for boolean conversion
      commit: 2f372a5dce6885f1d2647f7add01756bee0fef49

--
Lee Jones [李琼斯]





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux