w1: w1_therm: use swap() to make code cleaner
authorYang Guang <yang.guang5@zte.com.cn>
Tue, 21 Dec 2021 09:15:59 +0000 (17:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Dec 2021 09:38:13 +0000 (10:38 +0100)
commite233897b1f7a859092bd20b10bfd412013381a10
tree050340e35f52ef013216b751db2cac42b8293ab5
parentc95cc0d95702523f8f361b802c9b7d4eeae07f5d
w1: w1_therm: use swap() to make code cleaner

Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: David Yang <davidcomponentone@gmail.com>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Link: https://lore.kernel.org/r/cb14f9e6e86cf8494ed2ddce6eec8ebd988908d9.1640077704.git.yang.guang5@zte.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_therm.c