diff options
author | 2017-04-13 14:10:51 +0200 | |
---|---|---|
committer | 2017-04-24 21:42:23 +0200 | |
commit | fe79018aa4c3af7d74e48b9a9b117da9fb6cf353 (patch) | |
tree | 972b6c4575c779ee3853f0381a25139a5ad5f2e4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mmc: cavium: Remove redundant pointer check (diff) | |
download | linux-dev-fe79018aa4c3af7d74e48b9a9b117da9fb6cf353.tar.xz linux-dev-fe79018aa4c3af7d74e48b9a9b117da9fb6cf353.zip |
mmc: cavium: Check pointer before de-reference
Add a pointer check to prevent this smatch warning:
drivers/mmc/host/cavium.c:803 cvm_mmc_request()
error: we previously assumed 'cmd->data' could be null (see line 782)
This is a theoretical fix because MMC_CMD_ADTC seems to imply
that cmd->data is not null. Nevertheless checking cmd->data
before using it improves readability.
Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions