mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
icom: fixing a if clause spaghetti
adapter->version can only be ADAPTER_V2 or ADAPTER_V1. So, that OR operand in the "if" clause is non-sense and can be removed. Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
13858d3690
commit
aba6593bf7
1 changed files with 2 additions and 2 deletions
|
@ -408,7 +408,7 @@ static void load_code(struct icom_port *icom_port)
|
|||
release_firmware(fw);
|
||||
|
||||
/* Set Hardware level */
|
||||
if ((icom_port->adapter->version | ADAPTER_V2) == ADAPTER_V2)
|
||||
if (icom_port->adapter->version == ADAPTER_V2)
|
||||
writeb(V2_HARDWARE, &(icom_port->dram->misc_flags));
|
||||
|
||||
/* Start the processor in Adapter */
|
||||
|
@ -861,7 +861,7 @@ static irqreturn_t icom_interrupt(int irq, void *dev_id)
|
|||
/* find icom_port for this interrupt */
|
||||
icom_adapter = (struct icom_adapter *) dev_id;
|
||||
|
||||
if ((icom_adapter->version | ADAPTER_V2) == ADAPTER_V2) {
|
||||
if (icom_adapter->version == ADAPTER_V2) {
|
||||
int_reg = icom_adapter->base_addr + 0x8024;
|
||||
|
||||
adapter_interrupts = readl(int_reg);
|
||||
|
|
Loading…
Reference in a new issue