aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-07-01 04:48:32 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-21 10:04:19 +0200
commitb88668fec959fec0e77196455ec82778d8065941 (patch)
tree76ff3eee45a97759ba0a60c22eb5b4b581447409 /tools/perf/scripts/python/exported-sql-viewer.py
parentusb: gadget: f_ncm: remove check for NULL skb_tx_data in timer function (diff)
downloadlinux-b88668fec959fec0e77196455ec82778d8065941.tar.gz
linux-b88668fec959fec0e77196455ec82778d8065941.zip
usb: gadget: f_ncm: remove spurious if statement
the current logic is: struct sk_buff *skb2 = NULL; ... if (!skb && !ncm->skb_tx_data) return NULL; if (skb) { ... } else if (ncm->skb_tx_data) ... } return skb2; Which means that first if statement is simply not needed. Cc: Brooke Basile <brookebasile@gmail.com> Cc: "Bryan O'Donoghue" <bryan.odonoghue@linaro.org> Cc: Felipe Balbi <balbi@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Lorenzo Colitti <lorenzo@google.com> Signed-off-by: Maciej Żenczykowski <maze@google.com> Link: https://lore.kernel.org/r/20210701114834.884597-4-zenczykowski@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions