linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: fdomain_isa: merge branches in fdomain_isa_match()
@ 2020-08-29 20:19 Sergey Shtylyov
  2020-09-09  2:09 ` Martin K. Petersen
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Shtylyov @ 2020-08-29 20:19 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen, linux-scsi

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*...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>

---
The patch is against the 'for-next' branch of Martin Petersen's 'scsi.git'
repo...

 drivers/scsi/fdomain_isa.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Index: scsi/drivers/scsi/fdomain_isa.c
===================================================================
--- scsi.orig/drivers/scsi/fdomain_isa.c
+++ scsi/drivers/scsi/fdomain_isa.c
@@ -111,12 +111,11 @@ static int fdomain_isa_match(struct devi
 			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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi: fdomain_isa: merge branches in fdomain_isa_match()
  2020-08-29 20:19 [PATCH] scsi: fdomain_isa: merge branches in fdomain_isa_match() Sergey Shtylyov
@ 2020-09-09  2:09 ` Martin K. Petersen
  2020-11-06  9:17   ` Sergey Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Martin K. Petersen @ 2020-09-09  2:09 UTC (permalink / raw)
  To: Sergey Shtylyov, James E.J. Bottomley, linux-scsi; +Cc: Martin K . Petersen

On Sat, 29 Aug 2020 23:19:42 +0300, Sergey Shtylyov wrote:

> 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*...

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: fdomain_isa: Merge branches in fdomain_isa_match()
      https://git.kernel.org/mkp/scsi/c/255937d77390

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi: fdomain_isa: merge branches in fdomain_isa_match()
  2020-09-09  2:09 ` Martin K. Petersen
@ 2020-11-06  9:17   ` Sergey Shtylyov
  2020-11-06  9:22     ` Sergey Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Shtylyov @ 2020-11-06  9:17 UTC (permalink / raw)
  To: Martin K. Petersen, James E.J. Bottomley, linux-scsi

On 09.09.2020 5:09, Martin K. Petersen wrote:

>> 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*...
> 
> Applied to 5.10/scsi-queue, thanks!
> 
> [1/1] scsi: fdomain_isa: Merge branches in fdomain_isa_match()
>        https://git.kernel.org/mkp/scsi/c/255937d77390

    It was already merged to Linus' tree... but now I'm not seeing it there, 
the patch has just disappeared! How come?

MBR, Sergei

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] scsi: fdomain_isa: merge branches in fdomain_isa_match()
  2020-11-06  9:17   ` Sergey Shtylyov
@ 2020-11-06  9:22     ` Sergey Shtylyov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey Shtylyov @ 2020-11-06  9:22 UTC (permalink / raw)
  To: Martin K. Petersen, James E.J. Bottomley, linux-scsi

On 06.11.2020 12:17, Sergey Shtylyov wrote:

>>> 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*...
>>
>> Applied to 5.10/scsi-queue, thanks!
>>
>> [1/1] scsi: fdomain_isa: Merge branches in fdomain_isa_match()
>>        https://git.kernel.org/mkp/scsi/c/255937d77390
> 
>     It was already merged to Linus' tree... but now I'm not seeing it there, 
> the patch has just disappeared! How come?

    Has just reappeared again! :-/

MBR, Sergei

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-06  9:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-29 20:19 [PATCH] scsi: fdomain_isa: merge branches in fdomain_isa_match() Sergey Shtylyov
2020-09-09  2:09 ` Martin K. Petersen
2020-11-06  9:17   ` Sergey Shtylyov
2020-11-06  9:22     ` Sergey Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).