pinctrl: single: Remove unreachable code

In single_read there is a switch block with a default label. All cases
in the switch block, including the default, return directly. So any code
following the switch block is unreachable. Remove the unreachable code.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
This commit is contained in:
Andrew Goodbody 2025-08-07 11:04:02 +01:00 committed by Tom Rini
parent 460db5b44d
commit 64204ab107

View File

@ -109,8 +109,6 @@ static unsigned int single_read(struct udevice *dev, void *reg)
default: /* 32 bits */
return readl(reg);
}
return readb(reg);
}
static void single_write(struct udevice *dev, unsigned int val, void *reg)