diff options
| author | Andy Shevchenko <[email protected]> | 2022-02-04 17:32:53 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-02-04 16:58:25 +0100 |
| commit | 3c5b2f5b9a829992f3760395a64d6102f11fe62d (patch) | |
| tree | b97d1385b5ce93d8d667bf64c0b54d4845cc2009 /tools/perf/scripts/python | |
| parent | 916acbf6b4b9262df7de1d2b6208a4efa209a88f (diff) | |
tty: Drop duplicate NULL check in TTY port functions
The free_page(addr), which becomes free_pages(addr, 0) checks addr against 0.
No need to repeat this check in the callers, i.e. tty_port_free_xmit_buf()
and tty_port_destructor().
Note, INIT_KFIFO() is safe without that check, because it operates on
a separate member and doesn't rely on the FIFO itself to be allocated.
Acked-by: Jiri Slaby <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions