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

MIPS:Netlogic: Remove redundant value in operation.

Removed parameters checked twice in logical OR operation.
Suggested by coccinelle and manually verified.

Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
Cc: jchandra@broadcom.com
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/5627/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Alexandru Juncu and committed by
Ralf Baechle
83eefabf 62597c60

+1 -2
+1 -2
arch/mips/netlogic/xlp/usb-init.c
··· 75 75 port_addr = nlm_get_usb_regbase(node, port); 76 76 val = nlm_read_usb_reg(port_addr, USB_INT_EN); 77 77 val = USB_CTRL_INTERRUPT_EN | USB_OHCI_INTERRUPT_EN | 78 - USB_OHCI_INTERRUPT1_EN | USB_CTRL_INTERRUPT_EN | 79 - USB_OHCI_INTERRUPT_EN | USB_OHCI_INTERRUPT2_EN; 78 + USB_OHCI_INTERRUPT1_EN | USB_OHCI_INTERRUPT2_EN; 80 79 nlm_write_usb_reg(port_addr, USB_INT_EN, val); 81 80 } 82 81