Skip to contentSkip to conversation

Staging: i4l: Return NULL instead of 0.

PATCH Superseded Sandhya Bankar 2 participants 2 messages Sep 17, 2016 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: i4l: Return NULL instead of 0.

Return NULL instead of 0,if card with given driverId is not found.

---
 drivers/staging/i4l/act2000/module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/i4l/act2000/module.c +1 -1
index 39a8940..6a6c911 100755
@@ -499,7 +499,7 @@ act2000_findcard(int driverid)
 			return p;
 		p = p->next;
 	}
-	return (act2000_card *) 0;
+	return NULL;
 }
 
 /*
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Sandhya Bankar

Return NULL instead of 0,if card with given driverId is not found.

But please add a space after the comma.

julia

Quoted 29 lines
---
 drivers/staging/i4l/act2000/module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/i4l/act2000/module.c +1 -2
index 39a8940..6a6c911 100755
@@ -499,7 +499,7 @@ act2000_findcard(int driverid)
 			return p;
 		p = p->next;
 	}
-	return (act2000_card *) 0;
+	return NULL;
 }
 
 /*
--

1.7.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160917013054.GA14842%40sandhya.
For more options, visit https://groups.google.com/d/optout.