diff options
| author | Javier Carrasco <[email protected]> | 2024-06-06 11:03:57 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-06-20 19:30:16 +0200 |
| commit | 2bc0bea11c6112e61fbd663c993892ee56956577 (patch) | |
| tree | 7245a81010d5768189855e55f4ad7c9d49f7fcf6 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 916b8e5fa73d399a61156da7d914abfae74b962b (diff) | |
usb: typec: tipd: use min() to set tps6598x firmware packet size
Simplify the current firmware packet size check in the tps6598x
implementation by means of a single call to min(), which is what the
current code does in a more verbose, less elegant way.
This patch fixes a cocci warning ("WARNING opportunity for min()").
Suggested-by: Julia Lawall <[email protected]>
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Heikki Krogerus <[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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions