diff options
author | Sergey Shtylyov <s.shtylyov@omprussia.ru> | 2020-08-29 23:19:42 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-03 05:49:07 +0300 |
commit | 255937d7739068e6a6649783ebb7bd9fe284a2b4 (patch) | |
tree | 35ed0ca82226121b85a1bd34684e90951b96daa5 /drivers/scsi/fdomain_isa.c | |
parent | e5f48ac42cc99e339fcb5392b698b4093001b859 (diff) | |
download | linux-255937d7739068e6a6649783ebb7bd9fe284a2b4.tar.xz |
scsi: fdomain_isa: Merge branches in fdomain_isa_match()
The *else* branch of the *if* (base) statement in fdomain_isa_match() is
immediately followed by the *if* (!base) statement. Simplify the code by
removing the unneeded *if*.
Link: https://lore.kernel.org/r/df68e341-5113-4cf2-b64c-dc1ad0b686ac@omprussia.ru
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fdomain_isa.c')
-rw-r--r-- | drivers/scsi/fdomain_isa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/fdomain_isa.c b/drivers/scsi/fdomain_isa.c index f2da4fa382e8..e0cdcd2003d0 100644 --- a/drivers/scsi/fdomain_isa.c +++ b/drivers/scsi/fdomain_isa.c @@ -111,12 +111,11 @@ static int fdomain_isa_match(struct device *dev, unsigned int ndev) base = readb(p + sig->base_offset) + (readb(p + sig->base_offset + 1) << 8); iounmap(p); - if (base) + if (base) { dev_info(dev, "BIOS at 0x%lx specifies I/O base 0x%x\n", bios_base, base); - else + } else { /* no I/O base in BIOS area */ dev_info(dev, "BIOS at 0x%lx\n", bios_base); - if (!base) { /* no I/O base in BIOS area */ /* save BIOS signature for later use in port probing */ saved_sig = sig; return 0; |