Skip to content

Commit

Permalink
[SCSI] advansys: Remove ASC_WIDE_BOARD predicate
Browse files Browse the repository at this point in the history
Replace it with !ASC_NARROW_BOARD

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Oct 12, 2007
1 parent ae002fe commit 9a256fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/scsi/advansys.c
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,6 @@ do { \
#define ASC_IS_WIDE_BOARD 0x04 /* AdvanSys Wide Board */

#define ASC_NARROW_BOARD(boardp) (((boardp)->flags & ASC_IS_WIDE_BOARD) == 0)
#define ASC_WIDE_BOARD(boardp) ((boardp)->flags & ASC_IS_WIDE_BOARD)

#define NO_ISA_DMA 0xff /* No ISA DMA Channel Used */

Expand Down Expand Up @@ -4385,7 +4384,7 @@ advansys_proc_info(struct Scsi_Host *shost, char *buffer, char **start,
/*
* Display Wide Board BIOS Information.
*/
if (ASC_WIDE_BOARD(boardp)) {
if (!ASC_NARROW_BOARD(boardp)) {
cp = boardp->prtbuf;
cplen = asc_prt_adv_bios(shost, cp, ASC_PRTBUF_SIZE);
BUG_ON(cplen >= ASC_PRTBUF_SIZE);
Expand Down Expand Up @@ -14432,7 +14431,7 @@ static int advansys_release(struct Scsi_Host *shost)
ASC_DBG(1, "advansys_release: free_dma()\n");
free_dma(shost->dma_channel);
}
if (ASC_WIDE_BOARD(boardp)) {
if (!ASC_NARROW_BOARD(boardp)) {
iounmap(boardp->ioremap_addr);
advansys_wide_free_mem(boardp);
}
Expand Down

0 comments on commit 9a256fa

Please sign in to comment.