From: <deepakx.nagaraju@intel.com>
To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: jdavem@davemloft.net, edumazet@google.com, pabeni@redhat.com,
mun.yew.tham@intel.com,
Nagaraju DeepakX <deepakx.nagaraju@intel.com>,
Andy Schevchenko <andriy.schevchenko@linux.intel.com>,
Simon Horman <horms@kernel.org>
Subject: [PATCH v2 1/4] net: ethernet: altera: remove unneeded assignments
Date: Thu, 21 Dec 2023 21:40:38 +0800 [thread overview]
Message-ID: <20231221134041.27104-2-deepakx.nagaraju@intel.com> (raw)
In-Reply-To: <20231221134041.27104-1-deepakx.nagaraju@intel.com>
From: Nagaraju DeepakX <deepakx.nagaraju@intel.com>
Remove unneeded assignments in the code.
Signed-off-by: Nagaraju DeepakX <deepakx.nagaraju@intel.com>
Reviewed-by: Andy Schevchenko <andriy.schevchenko@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
---
drivers/net/ethernet/altera/altera_sgdma.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/altera/altera_sgdma.c b/drivers/net/ethernet/altera/altera_sgdma.c
index 7f247ccbe6ba..5517f89f1ef9 100644
--- a/drivers/net/ethernet/altera/altera_sgdma.c
+++ b/drivers/net/ethernet/altera/altera_sgdma.c
@@ -63,8 +63,6 @@ int sgdma_initialize(struct altera_tse_private *priv)
INIT_LIST_HEAD(&priv->txlisthd);
INIT_LIST_HEAD(&priv->rxlisthd);
- priv->rxdescphys = (dma_addr_t) 0;
- priv->txdescphys = (dma_addr_t) 0;
priv->rxdescphys = dma_map_single(priv->device,
(void __force *)priv->rx_dma_desc,
@@ -237,8 +235,8 @@ u32 sgdma_rx_status(struct altera_tse_private *priv)
desc = &base[0];
if (sts & SGDMA_STSREG_EOP) {
- unsigned int pktlength = 0;
- unsigned int pktstatus = 0;
+ unsigned int pktlength;
+ unsigned int pktstatus;
dma_sync_single_for_cpu(priv->device,
priv->rxdescphys,
SGDMA_DESC_LEN,
--
2.26.2
next prev parent reply other threads:[~2023-12-21 13:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-13 7:11 [PATCH 0/5] Rename functions and their prototypes and move to common files deepakx.nagaraju
2023-12-13 7:11 ` [PATCH 1/5] net: ethernet: altera: remove unneeded assignments deepakx.nagaraju
2023-12-16 20:03 ` Simon Horman
2023-12-13 7:11 ` [PATCH 2/5] net: ethernet: altera: fix indentation warnings deepakx.nagaraju
2023-12-13 7:11 ` [PATCH 3/5] net: ethernet: altera: move read write functions deepakx.nagaraju
2023-12-16 20:03 ` Simon Horman
2023-12-13 7:11 ` [PATCH 4/5] net: ethernet: altera: sorting headers in alphabetical order deepakx.nagaraju
2023-12-14 19:06 ` Jakub Kicinski
2023-12-13 7:11 ` [PATCH 5/5] net: ethernet: altera: rename functions and their prototypes deepakx.nagaraju
2023-12-21 13:40 ` [PATCH v2 0/4] Rename functions and their prototypes and move to common files deepakx.nagaraju
2023-12-21 13:40 ` deepakx.nagaraju [this message]
2023-12-21 13:40 ` [PATCH v2 2/4] net: ethernet: altera: fix indentation warnings deepakx.nagaraju
2023-12-23 14:57 ` Simon Horman
2023-12-21 13:40 ` [PATCH v2 3/4] net: ethernet: altera: move read write functions deepakx.nagaraju
2023-12-21 13:40 ` [PATCH v2 4/4] net: ethernet: altera: rename functions and their prototypes deepakx.nagaraju
2023-12-23 14:54 ` Simon Horman
2023-12-23 15:06 ` Simon Horman
2024-01-03 11:23 ` [PATCH 5/5] " Dan Carpenter
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=20231221134041.27104-2-deepakx.nagaraju@intel.com \
--to=deepakx.nagaraju@intel.com \
--cc=andriy.schevchenko@linux.intel.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jdavem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mun.yew.tham@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).