diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2019-05-09 10:13:46 +0530 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-05-29 14:06:35 +0200 |
commit | 34765c19cce3cba0c94d471d2e84f71d4978996e (patch) | |
tree | 7cd94a1ab4a3fcab927fd654f8eca8a35d14bdb8 /Documentation/arm | |
parent | 01590f361e94a01e9b9868fa81d4079d255c681f (diff) | |
download | linux-34765c19cce3cba0c94d471d2e84f71d4978996e.tar.gz linux-34765c19cce3cba0c94d471d2e84f71d4978996e.tar.bz2 linux-34765c19cce3cba0c94d471d2e84f71d4978996e.zip |
i2c: sh_mobile: simplify code and remove false compilation warning
This currently generates a warning:
drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr':
drivers/i2c/busses/i2c-sh_mobile.c:399:26: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized]
Though the code looks okay and shouldn't ever use the variable
uninitialized. Fix the warning by moving the code around and getting rid
of 'data'.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[wsa: minor updates to commit message]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'Documentation/arm')
0 files changed, 0 insertions, 0 deletions