mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-21 17:32:09 +01:00
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:
parent
460db5b44d
commit
64204ab107
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user