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

Commit bdc3ae72 authored by Nick's avatar Nick Committed by Matthew Garrett
Browse files

platform/x86/toshiba-apci.c possible bad if test?

parent dc8f0315
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1238,7 +1238,7 @@ static ssize_t toshiba_kbd_bl_mode_store(struct device *dev,
	int mode = -1;
	int time = -1;

	if (sscanf(buf, "%i", &mode) != 1 && (mode != 2 || mode != 1))
	if (sscanf(buf, "%i", &mode) != 1  || (mode != 2 || mode != 1))
		return -EINVAL;

	/* Set the Keyboard Backlight Mode where: