Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: hvcs.c: move assignment out of if () block

We should not be doing assignments within an if () block
so fix up the code to not do this.

change was created using Coccinelle.

CC: Jiri Slaby <jslaby@suse.cz>
CC: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+2 -2
+2 -2
drivers/tty/hvc/hvcs.c
··· 1044 1044 * It is possible that the vty-server was removed between the time that 1045 1045 * the conn was registered and now. 1046 1046 */ 1047 - if (!(rc = request_irq(irq, &hvcs_handle_interrupt, 1048 - 0, "ibmhvcs", hvcsd))) { 1047 + rc = request_irq(irq, &hvcs_handle_interrupt, 0, "ibmhvcs", hvcsd); 1048 + if (!rc) { 1049 1049 /* 1050 1050 * It is possible the vty-server was removed after the irq was 1051 1051 * requested but before we have time to enable interrupts.