diff options
author | Hyun Kwon <[email protected]> | 2020-07-29 16:30:45 -0700 |
---|---|---|
committer | Hyun Kwon <[email protected]> | 2020-08-01 01:56:10 +0000 |
commit | 70c8b4b8ab3714fb2d075be22aec05ae9c9a6a09 (patch) | |
tree | f72aa230f6f051d2760b30645eb0c2c090adc266 /tools/perf/scripts/python | |
parent | 2d889db7626d2b6d67f402e2478b11f9a49b44e3 (diff) |
drm: xlnx: zynqmp: Use switch - case for link rate downshift
Use switch - case to downshift from the current link rate. It's a small
loop now, so fine to be replaced with switch - case. With a loop, it is
confusing and hard to follow as reported below.
The patch d76271d22694: "drm: xlnx: DRM/KMS driver for Xilinx ZynqMP
DisplayPort Subsystem" from Jul 7, 2018, leads to the following
static checker warning:
drivers/gpu/drm/xlnx/zynqmp_dp.c:594 zynqmp_dp_mode_configure()
error: iterator underflow 'bws' (-1)-2
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Hyun Kwon <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions