All of lore.kernel.org
 help / color / mirror / Atom feed
* [pdx86-platform-drivers-x86:review-hans 83/93] drivers/platform/x86/asus-wmi.c:1039:12-13: WARNING opportunity for min()
@ 2022-07-18  5:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-18  5:29 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
CC: Hans de Goede <hdegoede@redhat.com>
CC: linux-kernel(a)vger.kernel.org
TO: "PaddyKP_Yao" <PaddyKP_Yao@asus.com>
CC: Hans de Goede <hdegoede@redhat.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-hans
head:   7a4a04f4e90d746928501a6d551de87d02c28323
commit: b644c95598adfe2b968e97daee3a890dd2fda84d [83/93] platform/x86: asus-wmi: Add mic-mute LED classdev support
:::::: branch date: 15 hours ago
:::::: commit date: 3 days ago
config: x86_64-randconfig-c002 (https://download.01.org/0day-ci/archive/20220718/202207181336.8QjrXSME-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


cocci warnings: (new ones prefixed by >>)
>> drivers/platform/x86/asus-wmi.c:1039:12-13: WARNING opportunity for min()

vim +1039 drivers/platform/x86/asus-wmi.c

4c05984459ec55 Maxime Bellengé 2017-09-23  1031  
b644c95598adfe PaddyKP_Yao     2022-07-11  1032  static int micmute_led_set(struct led_classdev *led_cdev,
b644c95598adfe PaddyKP_Yao     2022-07-11  1033  			   enum led_brightness brightness)
b644c95598adfe PaddyKP_Yao     2022-07-11  1034  {
b644c95598adfe PaddyKP_Yao     2022-07-11  1035  	int state = brightness != LED_OFF;
b644c95598adfe PaddyKP_Yao     2022-07-11  1036  	int err;
b644c95598adfe PaddyKP_Yao     2022-07-11  1037  
b644c95598adfe PaddyKP_Yao     2022-07-11  1038  	err = asus_wmi_set_devstate(ASUS_WMI_DEVID_MICMUTE_LED, state, NULL);
b644c95598adfe PaddyKP_Yao     2022-07-11 @1039  	return err < 0 ? err : 0;
b644c95598adfe PaddyKP_Yao     2022-07-11  1040  }
b644c95598adfe PaddyKP_Yao     2022-07-11  1041  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-18  5:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18  5:29 [pdx86-platform-drivers-x86:review-hans 83/93] drivers/platform/x86/asus-wmi.c:1039:12-13: WARNING opportunity for min() kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.