diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-12-19 15:03:44 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-13 13:19:53 +0100 |
commit | 8cb6ed17eb30f190f215031844433981644b064d (patch) | |
tree | 2c549bf328a09ca58b270fd038fb8928f12d7d4d /drivers/hwmon/g762.c | |
parent | 46bc5c408e4e325efbfff26609c76099979180a7 (diff) |
mmc: block: Avoid uninitialized warning in mmc_blk_issue_discard_rq()
With gcc-4.1.2:
mmc/core/block.c: In function ‘mmc_blk_issue_discard_rq’:
mmc/core/block.c:1150: warning: ‘arg’ may be used uninitialized in this function
mmc/core/block.c:1150: warning: ‘nr’ may be used uninitialized in this function
mmc/core/block.c:1150: warning: ‘from’ may be used uninitialized in this function
While this is a false positive, it can be avoided easily by jumping over
the checks for "err" that are always false.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/hwmon/g762.c')
0 files changed, 0 insertions, 0 deletions