diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2017-02-04 04:35:32 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-02-22 00:00:12 +0300 |
commit | 11a61a8602812c024d8c404193ce1654ee3b8f08 (patch) | |
tree | 3406999ef8e0e3ed29c7346f920c2368c7967d19 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1f6c4501c667a6bf25996f04c9cae49a88d90d01 (diff) | |
download | linux-11a61a8602812c024d8c404193ce1654ee3b8f08.tar.xz |
PCI: dwc: Use PTR_ERR_OR_ZERO to simplify code
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR to avoid the
following warnings found by scripts/coccinelle/api/ptr_ret.cocci:
drivers/pci/dwc/pcie-qcom.c:215:1-3: WARNING: PTR_ERR_OR_ZERO can be used
drivers/pci/dwc/pcie-qcom.c:247:1-3: WARNING: PTR_ERR_OR_ZERO can be used
drivers/pci/dwc/pcie-qcom.c:481:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions