summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-03-06 13:03:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-06 04:09:17 -0800
commit716003bb8bc4a54a48721b0206e22fa471176b18 (patch)
tree301293b1f72ad268be59a82540706384efd20029 /tools/perf/scripts/python
parent0defb439fc24e102d27960d1e462341cff2d496a (diff)
downloadlinux-716003bb8bc4a54a48721b0206e22fa471176b18.tar.gz
linux-716003bb8bc4a54a48721b0206e22fa471176b18.zip
staging: emxx_udc: Remove unnecessary NULL checks
These pointers can't be NULL so I have removed the checks. The checking was sort of problematic as well because it didn't make sense. In _nbu2ss_read_request_data() the && should have been ||. In nbu2ss_gad_get_frame() we know that "pgadget" is non-NULL and "udc" is an offset from "pgadget" so it can't be NULL. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions