tty: vt: replace _manual_ swap with swap macro in set_selection
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 10 Nov 2017 22:05:45 +0000 (16:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 14:32:32 +0000 (15:32 +0100)
commitdf3d9a5b771fa40689bbbdf54bd575d2817fe028
treef8a81a35fb2a8f048ef73bbc0f4a5c0e048158d4
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
tty: vt: replace _manual_ swap with swap macro in set_selection

Make use of the swap macro instead of _manually_ swapping values
and remove unnecessary variable tmp.

This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/selection.c