Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd3c7b9e authored by Andrey Utkin's avatar Andrey Utkin Committed by Matthew Garrett
Browse files

drivers/platform/x86/thinkpad_acpi.c: don't test unsigned int for negativity

parent 22ba58c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6144,7 +6144,7 @@ static int brightness_set(unsigned int value)
{
{
	int res;
	int res;


	if (value > bright_maxlvl || value < 0)
	if (value > bright_maxlvl)
		return -EINVAL;
		return -EINVAL;


	vdbg_printk(TPACPI_DBG_BRGHT,
	vdbg_printk(TPACPI_DBG_BRGHT,