All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [next-queue, v2, 3/8] e1000e: clean up the local variable
@ 2015-11-19 22:17 Brown, Aaron F
  0 siblings, 0 replies; 2+ messages in thread
From: Brown, Aaron F @ 2015-11-19 22:17 UTC (permalink / raw)
  To: intel-wired-lan

> From: Jean Sacren <sakiwit@gmail.com>

> The local variable 'ret' doesn't serve much purpose so we might as well
> clean it up.

> Signed-off-by: Jean Sacren <sakiwit@gmail.com>
> ---
> v2: No changes.

> drivers/net/ethernet/intel/e1000e/netdev.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)

Tested-by: Aaron Brown <aaron.f.brown@intel.com>

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

* [Intel-wired-lan] [next-queue v2 3/8] e1000e: clean up the local variable
  2015-09-19 11:08 [Intel-wired-lan] [next-queue v2 1/8] e1000: clean up the checking logic =?unknown-8bit?q?J=CE=B5an?= Sacren
@ 2015-09-19 11:08 ` =?unknown-8bit?q?J=CE=B5an?= Sacren
  0 siblings, 0 replies; 2+ messages in thread
From: =?unknown-8bit?q?J=CE=B5an?= Sacren @ 2015-09-19 11:08 UTC (permalink / raw)
  To: intel-wired-lan

From: Jean Sacren <sakiwit@gmail.com>

The local variable 'ret' doesn't serve much purpose so we might as well
clean it up.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
---
v2: No changes.

 drivers/net/ethernet/intel/e1000e/netdev.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index 7be339eb9927..a501e7744597 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -7504,14 +7504,11 @@ static struct pci_driver e1000_driver = {
  **/
 static int __init e1000_init_module(void)
 {
-	int ret;
-
 	pr_info("Intel(R) PRO/1000 Network Driver - %s\n",
 		e1000e_driver_version);
 	pr_info("Copyright(c) 1999 - 2015 Intel Corporation.\n");
-	ret = pci_register_driver(&e1000_driver);
 
-	return ret;
+	return pci_register_driver(&e1000_driver);
 }
 module_init(e1000_init_module);
 

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

end of thread, other threads:[~2015-11-19 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-19 22:17 [Intel-wired-lan] [next-queue, v2, 3/8] e1000e: clean up the local variable Brown, Aaron F
  -- strict thread matches above, loose matches on Subject: below --
2015-09-19 11:08 [Intel-wired-lan] [next-queue v2 1/8] e1000: clean up the checking logic =?unknown-8bit?q?J=CE=B5an?= Sacren
2015-09-19 11:08 ` [Intel-wired-lan] [next-queue v2 3/8] e1000e: clean up the local variable =?unknown-8bit?q?J=CE=B5an?= Sacren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.