summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2020-05-20 06:41:15 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-22 03:14:18 +0300
commit3469660d1b15ccfdf7b33295c306b6298ca730aa (patch)
tree965116c1da5b2d6c02070e8e4211b1e436cb61ab /tools/perf/scripts/python/export-to-postgresql.py
parentd28ea1fbbf437054ef339afec241019f2c4e2bb6 (diff)
downloadlinux-3469660d1b15ccfdf7b33295c306b6298ca730aa.tar.xz
net: ethernet: ti: fix some return value check of cpsw_ale_create()
cpsw_ale_create() can return both NULL and PTR_ERR(), but all of the caller only check NULL for error handling. This patch convert it to only return PTR_ERR() in all error cases, and the caller using IS_ERR() instead of NULL test. Fixes: 4b41d3436796 ("net: ethernet: ti: cpsw: allow untagged traffic on host port") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions