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

Commit a3dd01e1 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Lee Jones
Browse files

mfd: ab8500-debugfs: Cleaning up unnecessary to test, unsigned can't be negative.



Unsigned variable can't be negative so it is unnecessary to test it

This was found using a static code analysis program called cppcheck

Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 005d16b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2503,7 +2503,7 @@ static ssize_t ab8500_gpadc_trig_timer_write(struct file *file,
	if (err)
		return err;

	if ((user_trig_timer >= 0) && (user_trig_timer <= 255)) {
	if (user_trig_timer <= 255) {
		trig_timer = (u8) user_trig_timer;
	} else {
		dev_err(dev, "debugfs error input: "