aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-imx1.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2019-01-07 19:49:37 +0000
committerThierry Reding <[email protected]>2019-01-10 08:32:23 +0000
commit309b32fb97d8cf0771373fb55e16b2852840c9aa (patch)
tree6ce2654c548f831cfd9938c9f632abe8a965823f /drivers/pwm/pwm-imx1.c
parentLinux 5.0-rc1 (diff)
downloadkernel-309b32fb97d8cf0771373fb55e16b2852840c9aa.tar.gz
kernel-309b32fb97d8cf0771373fb55e16b2852840c9aa.zip
pwm: Don't use memcmp() to compare state variables
Given that struct pwm_state is sparse (at least on some platforms), variables of this type might represent the same state because all fields are pairwise identical but still memcmp() returns a difference because some of the unused bits are different. To prevent surprises compare member by member instead of the whole occupied memory. Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-imx1.c')
0 files changed, 0 insertions, 0 deletions