aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2020-12-07 14:45:56 +0100
committerThierry Reding <[email protected]>2021-03-22 12:31:32 +0100
commit9666cec380d60808eb86d3be4caf84faeebe3081 (patch)
treeb446d6966905c9c7bcffc2e444ac84da990b4e14 /lib/test_fortify/write_overflow-strncpy-src.c
parent965ebe39c953a8248a45413c25833621529da03c (diff)
pwm: Drop function pwmchip_add_with_polarity()
pwmchip_add() only calls pwmchip_add_with_polarity() and nothing else. All other users of pwmchip_add_with_polarity() are gone. So drop pwmchip_add_with_polarity() and move the code instead to pwmchip_add(). The initial assignment to pwm->state.polarity is dropped. In every correct usage of the PWM API this value is overwritten later anyhow. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions