* [PATCH v2] Staging: i4l: Return NULL instead of 0.
@ 2016-09-17 7:17 Sandhya Bankar
2016-09-17 19:20 ` [Outreachy kernel] " Julia Lawall
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Sandhya Bankar @ 2016-09-17 7:17 UTC (permalink / raw)
To: outreachy-kernel; +Cc: gregkh
Return NULL instead of 0, if card with given driverId is not found.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
Changes in v2:
* Correcting commit message
drivers/staging/i4l/act2000/module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/i4l/act2000/module.c b/drivers/staging/i4l/act2000/module.c
index 39a8940..6a6c911 100755
--- a/drivers/staging/i4l/act2000/module.c
+++ b/drivers/staging/i4l/act2000/module.c
@@ -499,7 +499,7 @@ act2000_findcard(int driverid)
return p;
p = p->next;
}
- return (act2000_card *) 0;
+ return NULL;
}
/*
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH v2] Staging: i4l: Return NULL instead of 0.
2016-09-17 7:17 [PATCH v2] Staging: i4l: Return NULL instead of 0 Sandhya Bankar
@ 2016-09-17 19:20 ` Julia Lawall
2016-09-17 21:15 ` Alison Schofield
2016-09-17 21:24 ` Alison Schofield
2 siblings, 0 replies; 5+ messages in thread
From: Julia Lawall @ 2016-09-17 19:20 UTC (permalink / raw)
To: Sandhya Bankar; +Cc: outreachy-kernel, gregkh
On Sat, 17 Sep 2016, Sandhya Bankar wrote:
> Return NULL instead of 0, if card with given driverId is not found.
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
> Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
> ---
> Changes in v2:
> * Correcting commit message
> drivers/staging/i4l/act2000/module.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/i4l/act2000/module.c b/drivers/staging/i4l/act2000/module.c
> index 39a8940..6a6c911 100755
> --- a/drivers/staging/i4l/act2000/module.c
> +++ b/drivers/staging/i4l/act2000/module.c
> @@ -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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160917071702.GA16260%40sandhya.
> For more options, visit https://groups.google.com/d/optout.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH v2] Staging: i4l: Return NULL instead of 0.
2016-09-17 7:17 [PATCH v2] Staging: i4l: Return NULL instead of 0 Sandhya Bankar
2016-09-17 19:20 ` [Outreachy kernel] " Julia Lawall
@ 2016-09-17 21:15 ` Alison Schofield
2016-09-17 21:24 ` Alison Schofield
2 siblings, 0 replies; 5+ messages in thread
From: Alison Schofield @ 2016-09-17 21:15 UTC (permalink / raw)
To: Sandhya Bankar; +Cc: outreachy-kernel, gregkh
On Sat, Sep 17, 2016 at 12:47:02PM +0530, Sandhya Bankar wrote:
> Return NULL instead of 0, if card with given driverId is not found.
>
> Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Sandhya,
Not related to this patch specifically, but seems like most
of the function declarations are not in kernel preferred style. They
put the function type on a separate line, before the function name.
(Could be that someone's already cleaned this and I'm behind in my
email)
alison
> ---
> Changes in v2:
> * Correcting commit message
> drivers/staging/i4l/act2000/module.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/i4l/act2000/module.c b/drivers/staging/i4l/act2000/module.c
> index 39a8940..6a6c911 100755
> --- a/drivers/staging/i4l/act2000/module.c
> +++ b/drivers/staging/i4l/act2000/module.c
> @@ -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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160917071702.GA16260%40sandhya.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH v2] Staging: i4l: Return NULL instead of 0.
2016-09-17 7:17 [PATCH v2] Staging: i4l: Return NULL instead of 0 Sandhya Bankar
2016-09-17 19:20 ` [Outreachy kernel] " Julia Lawall
2016-09-17 21:15 ` Alison Schofield
@ 2016-09-17 21:24 ` Alison Schofield
2016-09-17 21:36 ` Greg KH
2 siblings, 1 reply; 5+ messages in thread
From: Alison Schofield @ 2016-09-17 21:24 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
On Sat, Sep 17, 2016 at 12:47:02PM +0530, Sandhya Bankar wrote:
> Return NULL instead of 0, if card with given driverId is not found.
>
> Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Greg,
I was going to say something else here about there being a lot of
printk's that maybe could be converted, but then I looked at the TODO
file.
>> * The icn, pcbit and act2000 drivers are dead, remove them in 2017
>> after another longterm kernel has been released, just in the
>> unlikely case someone still has this hardware.
Do you want work done on a driver that's on it's way out?
alisons
> ---
> Changes in v2:
> * Correcting commit message
> drivers/staging/i4l/act2000/module.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/i4l/act2000/module.c b/drivers/staging/i4l/act2000/module.c
> index 39a8940..6a6c911 100755
> --- a/drivers/staging/i4l/act2000/module.c
> +++ b/drivers/staging/i4l/act2000/module.c
> @@ -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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160917071702.GA16260%40sandhya.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH v2] Staging: i4l: Return NULL instead of 0.
2016-09-17 21:24 ` Alison Schofield
@ 2016-09-17 21:36 ` Greg KH
0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2016-09-17 21:36 UTC (permalink / raw)
To: Alison Schofield; +Cc: outreachy-kernel
On Sat, Sep 17, 2016 at 02:24:45PM -0700, Alison Schofield wrote:
> On Sat, Sep 17, 2016 at 12:47:02PM +0530, Sandhya Bankar wrote:
> > Return NULL instead of 0, if card with given driverId is not found.
> >
> > Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
>
> Greg,
>
> I was going to say something else here about there being a lot of
> printk's that maybe could be converted, but then I looked at the TODO
> file.
>
> >> * The icn, pcbit and act2000 drivers are dead, remove them in 2017
> >> after another longterm kernel has been released, just in the
> >> unlikely case someone still has this hardware.
>
> Do you want work done on a driver that's on it's way out?
If people want to "practice" on such a driver, it is fine with me.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-09-17 21:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-17 7:17 [PATCH v2] Staging: i4l: Return NULL instead of 0 Sandhya Bankar
2016-09-17 19:20 ` [Outreachy kernel] " Julia Lawall
2016-09-17 21:15 ` Alison Schofield
2016-09-17 21:24 ` Alison Schofield
2016-09-17 21:36 ` Greg KH
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.