diff options
| author | Maciej Żenczykowski <[email protected]> | 2021-07-01 04:48:32 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-07-21 10:04:19 +0200 |
| commit | b88668fec959fec0e77196455ec82778d8065941 (patch) | |
| tree | 76ff3eee45a97759ba0a60c22eb5b4b581447409 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ec017d6b60f8aa400987fe95cd839e9ba5dda41d (diff) | |
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 <[email protected]>
Cc: "Bryan O'Donoghue" <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Lorenzo Colitti <[email protected]>
Signed-off-by: Maciej Żenczykowski <[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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions