summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-02-04 18:32:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-04 18:58:25 +0300
commit3c5b2f5b9a829992f3760395a64d6102f11fe62d (patch)
treeb97d1385b5ce93d8d667bf64c0b54d4845cc2009 /tools/perf/scripts/python/export-to-postgresql.py
parent916acbf6b4b9262df7de1d2b6208a4efa209a88f (diff)
downloadlinux-3c5b2f5b9a829992f3760395a64d6102f11fe62d.tar.xz
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 <jirislaby@kernel.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220204153253.11006-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions