diff options
author | Biju Das <biju.das@bp.renesas.com> | 2019-10-09 18:12:49 +0200 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2019-10-31 12:24:01 +0100 |
commit | c9baab38fe0e28762d0d67611cbe2aef0fb3fc72 (patch) | |
tree | a078e187f66c167ff81db6c5f61c7faf2116a49e /kernel/dma.c | |
parent | phy: lantiq: vrx200-pcie: fix error return code in ltq_vrx200_pcie_phy_power_... (diff) | |
download | linux-c9baab38fe0e28762d0d67611cbe2aef0fb3fc72.tar.xz linux-c9baab38fe0e28762d0d67611cbe2aef0fb3fc72.zip |
phy: renesas: phy-rcar-gen2: Fix the array off by one warning
Fix the below smatch warning by adding variable check rather than the
hardcoded value.
warn: array off by one? 'data->select_value[channel_num]'
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'kernel/dma.c')
0 files changed, 0 insertions, 0 deletions