* [PATCH net-next] ixgbe: removing unnecesary assignments
@ 2009-04-29 17:15 Breno Leitao
2009-04-29 22:27 ` Jeff Kirsher
0 siblings, 1 reply; 2+ messages in thread
From: Breno Leitao @ 2009-04-29 17:15 UTC (permalink / raw)
To: e1000-devel; +Cc: netdev
This patch removes some assignment that are not necessary. Since the ret
variable is declared as false during its initialization, it makes no sense to
reassign false to it again.
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
drivers/net/ixgbe/ixgbe_main.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 5020f11..c238677 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -2775,8 +2775,6 @@ static inline bool ixgbe_set_dcb_queues(struct ixgbe_adapter *adapter)
adapter->num_tx_queues =
adapter->ring_feature[RING_F_DCB].indices;
ret = true;
- } else {
- ret = false;
}
return ret;
@@ -2802,8 +2800,6 @@ static inline bool ixgbe_set_rss_queues(struct ixgbe_adapter *adapter)
adapter->num_tx_queues =
adapter->ring_feature[RING_F_RSS].indices;
ret = true;
- } else {
- ret = false;
}
return ret;
@@ -2910,8 +2906,6 @@ static inline bool ixgbe_cache_ring_rss(struct ixgbe_adapter *adapter)
for (i = 0; i < adapter->num_tx_queues; i++)
adapter->tx_ring[i].reg_idx = i;
ret = true;
- } else {
- ret = false;
}
return ret;
@@ -2986,14 +2980,8 @@ static inline bool ixgbe_cache_ring_dcb(struct ixgbe_adapter *adapter)
adapter->rx_ring[i].reg_idx = i << 5;
ret = true;
- } else {
- ret = false;
}
- } else {
- ret = false;
}
- } else {
- ret = false;
}
return ret;
--
1.6.0.2
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] ixgbe: removing unnecesary assignments
2009-04-29 17:15 [PATCH net-next] ixgbe: removing unnecesary assignments Breno Leitao
@ 2009-04-29 22:27 ` Jeff Kirsher
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Kirsher @ 2009-04-29 22:27 UTC (permalink / raw)
To: Breno Leitao; +Cc: e1000-devel, netdev
On Wed, Apr 29, 2009 at 10:15 AM, Breno Leitao
<leitao@linux.vnet.ibm.com> wrote:
> This patch removes some assignment that are not necessary. Since the ret
> variable is declared as false during its initialization, it makes no sense to
> reassign false to it again.
>
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
>
> ---
Thanks Breno, I have added the patch to my queue of ixgbe patches. I
will push it with the other ixgbe patches I have, thanks again.
--
Cheers,
Jeff
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-29 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 17:15 [PATCH net-next] ixgbe: removing unnecesary assignments Breno Leitao
2009-04-29 22:27 ` Jeff Kirsher
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).