mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takahashi Akari <akaritakahashioss@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Takahashi Akari <akaritakahashioss@gmail.com>
Subject: [PATCH] <driver/net/ethernet/amd/nmclan_cs.c> Remove unnecessary line
Date: Sat, 10 Dec 2022 17:47:13 +0900	[thread overview]
Message-ID: <20221210084713.51710-1-akaritakahashioss@gmail.com> (raw)

Hello:

I sent a patch. Please review and merge.

Reason:
Remove unnecessaty line. (if statement is always true)

Git repository URL:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

File:
drivers/net/ethernet/amd/nmclan_cs.c : 931

Signed-off-by: Takahashi Akari <akaritakahashioss@gmail.com>
---
 drivers/net/ethernet/amd/nmclan_cs.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/amd/nmclan_cs.c b/drivers/net/ethernet/amd/nmclan_cs.c
index 823a329a921f..a90e0c5b603d 100644
--- a/drivers/net/ethernet/amd/nmclan_cs.c
+++ b/drivers/net/ethernet/amd/nmclan_cs.c
@@ -928,10 +928,7 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id)
 
   if (lp->tx_irq_disabled) {
     const char *msg;
-    if (lp->tx_irq_disabled)
-      msg = "Interrupt with tx_irq_disabled";
-    else
-      msg = "Re-entering the interrupt handler";
+    msg = "Interrupt with tx_irq_disabled";
     netdev_notice(dev, "%s [isr=%02X, imr=%02X]\n",
 		  msg,
 		  inb(ioaddr + AM2150_MACE_BASE + MACE_IR),
-- 
2.34.1


             reply	other threads:[~2022-12-10  8:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-10  8:47 Takahashi Akari [this message]
2022-12-10 13:18 ` Bagas Sanjaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221210084713.51710-1-akaritakahashioss@gmail.com \
    --to=akaritakahashioss@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®