ACPI: processor idle: Use swap() instead of open coding it
authorGuo Zhengkui <guozhengkui@vivo.com>
Tue, 9 Nov 2021 07:50:51 +0000 (15:50 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Nov 2021 16:46:12 +0000 (17:46 +0100)
commit0e6078c3c6737df7d0bd0c890fbadf24a27fffbb
treef8685f75f46bc5ba7351f93e4c2f2bb7c1e9f7df
parent6fd13452c1a2e6dfe5b9a4c84c1144383cc55472
ACPI: processor idle: Use swap() instead of open coding it

Address the following coccicheck warning:

./drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c:914:40-41:
WARNING opportunity for swap().

by using swap() for the swapping of variable values and drop
the tmp variable that is not needed any more.

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
[ rjw: Subject and changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c