diff options
author | Guilherme G. Piccoli <[email protected]> | 2017-12-22 14:31:38 -0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-01-09 16:37:03 +0100 |
commit | 8ca31ba8bb3441dd9928d2f92ffeee11dd2b6e63 (patch) | |
tree | 41cdaf226f3935728e4c4d95846a317d2702f39a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 69c444ba93b76f2da4f23449c72e83521142b243 (diff) |
tty: serial: jsm: Remove unnecessary NULL checks
After inspection made by Markus using Coccinelle software, he
observed that we could possibly be triggering a NULL pointer
dereference in 2 functions [0].
After discussion in mailing list, it was observed in fact
we have two unnecessary checks for NULL pointer, and they
were leading to Coccinelle warn. So, instead of reworking
the code as proposed by him, we hereby remove the
unnecessary checks, and also some unneeded extra lines in
the code.
These two unnecessary NULL checks were tracked in the call
chain as never NULL, so they can be safely removed.
No functional changes are intended.
[0] https://lkml.org/lkml/2017/11/29/705
Suggested-by: Markus Elfring <[email protected]>
Signed-off-by: Guilherme G. Piccoli <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions