diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-05-20 11:41:15 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-21 17:14:18 -0700 |
commit | 3469660d1b15ccfdf7b33295c306b6298ca730aa (patch) | |
tree | 965116c1da5b2d6c02070e8e4211b1e436cb61ab /tools/perf/scripts/python/stackcollapse.py | |
parent | d28ea1fbbf437054ef339afec241019f2c4e2bb6 (diff) |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions