summaryrefslogtreecommitdiffstats
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorChrister Beskow <chbe@kvaser.com>2019-08-06 09:29:38 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-08-13 16:36:52 +0200
commit1910cd88539c07abf34a558a0976b506483c377c (patch)
tree6f0ef3f77b4df9fe2889dbb9c3fb17fdb36413c8 /include/linux/debugobjects.h
parent53f6f391786e01bf2050c03d8a36d9defdcc2831 (diff)
downloadcachepc-linux-1910cd88539c07abf34a558a0976b506483c377c.tar.gz
cachepc-linux-1910cd88539c07abf34a558a0976b506483c377c.zip
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 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions