mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
reset: meson: remove unneeded check in meson_reset_reset
The if (bank >= REG_COUNT) is not need since already checked by the default rcdev->of_xlate implementation which guarantees that id < rcdev->nr_resets. Suggested-by: Philipp Zabel <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
This commit is contained in:
parent
a5a10afe04
commit
7e8838fe59
1 changed files with 0 additions and 3 deletions
|
|
@ -83,9 +83,6 @@ static int meson_reset_reset(struct reset_controller_dev *rcdev,
|
|||
unsigned int offset = id % BITS_PER_REG;
|
||||
void __iomem *reg_addr = data->reg_base + (bank << 2);
|
||||
|
||||
if (bank >= REG_COUNT)
|
||||
return -EINVAL;
|
||||
|
||||
writel(BIT(offset), reg_addr);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue