summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChrister Beskow <chbe@kvaser.com>2019-08-06 10:29:38 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-08-13 17:36:52 +0300
commit1910cd88539c07abf34a558a0976b506483c377c (patch)
tree6f0ef3f77b4df9fe2889dbb9c3fb17fdb36413c8 /tools/perf/scripts/python
parent53f6f391786e01bf2050c03d8a36d9defdcc2831 (diff)
downloadlinux-1910cd88539c07abf34a558a0976b506483c377c.tar.xz
can: kvaser_pciefd: kvaser_pciefd_pwm_stop(): remove unnecessary code when setting pwm duty cycle to zero
To set the duty cycle to zero (i.e. pwm_stop), the trigger value shall be equal to the top value. This is achieved by reading the value of the top bit field from the pwm register and then writing back this value to the trigger and top bit fields. Addresses-Coverity: ("Logically dead code") Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Christer Beskow <chbe@kvaser.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions