Skip to contentSkip to conversation

adf7242: remove multiple returns

PATCH In review Alexander Aring 2 participants 2 messages Dec 14, 2015 – Dec 15, 2015

Subsystems (3)
lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

PATCH 1/1 adf7242: remove multiple returns

This patch removes an unnecessary return inside the adf7242 driver.

Cc Michael Hennerich <[email protected]>
---
 drivers/net/ieee802154/adf7242.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ieee802154/adf7242.c +0 -2
index 89154c0..738b373 100644
@@ -1114,8 +1114,6 @@ static int adf7242_debugfs_init(struct adf7242_local *lp)
 					    lp->debugfs_root,
 					    adf7242_stats_show);
 	return PTR_ERR_OR_ZERO(stats);
-
-	return 0;
 }
 
 static const s32 adf7242_powers[] = {
Signature · 1 line
2.6.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Alexander Aring

This patch removes an unnecessary return inside the adf7242 driver.

Cc Michael Hennerich <[email protected]>
Quoted 18 lines
---
  drivers/net/ieee802154/adf7242.c | 2 --
  1 file changed, 2 deletions(-)
drivers/net/ieee802154/adf7242.c +0 -2
index 89154c0..738b373 100644
@@ -1114,8 +1114,6 @@ static int adf7242_debugfs_init(struct adf7242_local *lp)
  					    lp->debugfs_root,
  					    adf7242_stats_show);
  	return PTR_ERR_OR_ZERO(stats);
-
-	return 0;
  }
 
  static const s32 adf7242_powers[] = {
Signature · 8 lines
Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif