* [PATCH V3 1/5] drivers/fmc: remove unused variable
@ 2017-07-18 6:32 Alessandro Rubini
2017-07-18 6:53 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Rubini @ 2017-07-18 6:32 UTC (permalink / raw)
To: linux-kernel; +Cc: riehecky, federico.vaga, gregkh
From: Federico Vaga <federico.vaga@cern.ch>
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Tested-by: Pat Riehecky <riehecky@fnal.gov>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
---
V3 (Alessandro): fixed From line in patch, added alessandro's acked-by
V2 (Pat): added Tested-by and incorrect From line
V1 (Pat): picked from ohwr.org repo, where most fmc users pick from.
drivers/fmc/fru-parse.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/fmc/fru-parse.c b/drivers/fmc/fru-parse.c
index cb46263..eb21480 100644
--- a/drivers/fmc/fru-parse.c
+++ b/drivers/fmc/fru-parse.c
@@ -31,12 +31,11 @@ static char *__fru_alloc_get_tl(struct fru_common_header *header, int nr)
{
struct fru_type_length *tl;
char *res;
- int len;
tl = __fru_get_board_tl(header, nr);
if (!tl)
return NULL;
- len = fru_strlen(tl);
+
res = fru_alloc(fru_strlen(tl) + 1);
if (!res)
return NULL;
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH V3 1/5] drivers/fmc: remove unused variable
2017-07-18 6:32 [PATCH V3 1/5] drivers/fmc: remove unused variable Alessandro Rubini
@ 2017-07-18 6:53 ` Greg KH
2017-07-18 7:00 ` Alessandro Rubini
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2017-07-18 6:53 UTC (permalink / raw)
To: Alessandro Rubini; +Cc: linux-kernel, riehecky, federico.vaga
On Tue, Jul 18, 2017 at 08:32:42AM +0200, Alessandro Rubini wrote:
> From: Federico Vaga <federico.vaga@cern.ch>
>
> Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
> Tested-by: Pat Riehecky <riehecky@fnal.gov>
> Acked-by: Alessandro Rubini <rubini@gnudd.com>
> ---
Again, I do not like to take patches without any changelog text at all
:(
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V3 1/5] drivers/fmc: remove unused variable
2017-07-18 6:53 ` Greg KH
@ 2017-07-18 7:00 ` Alessandro Rubini
2017-07-18 7:23 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Alessandro Rubini @ 2017-07-18 7:00 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, riehecky, federico.vaga
> Again, I do not like to take patches without any changelog text at all
> :(
Sorry, I added this after the "---" line. I thought it was this one the
missing item:
V3 (Alessandro): fixed From line in patch, added alessandro's acked-by
V2 (Pat): added Tested-by and incorrect From line
V1 (Pat): picked from ohwr.org repo, where most fmc users pick from.
thanks
/alessandro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V3 1/5] drivers/fmc: remove unused variable
2017-07-18 7:00 ` Alessandro Rubini
@ 2017-07-18 7:23 ` Greg KH
2017-07-18 7:30 ` Alessandro Rubini
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2017-07-18 7:23 UTC (permalink / raw)
To: Alessandro Rubini; +Cc: linux-kernel, riehecky, federico.vaga
On Tue, Jul 18, 2017 at 09:00:29AM +0200, Alessandro Rubini wrote:
> > Again, I do not like to take patches without any changelog text at all
> > :(
>
> Sorry, I added this after the "---" line. I thought it was this one the
> missing item:
>
> V3 (Alessandro): fixed From line in patch, added alessandro's acked-by
>
> V2 (Pat): added Tested-by and incorrect From line
>
> V1 (Pat): picked from ohwr.org repo, where most fmc users pick from.
Ah, sorry, wrong "changelog". I meant the area that shows up in git
about what this patch does. There's no description of it other than the
Subject line. While this is a simple patch, it is always good to say
something like "variable foo was set but never actually used, so it's
safe to remove it as the function it called did not change the hardware
state" or something like that.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH V3 1/5] drivers/fmc: remove unused variable
2017-07-18 7:23 ` Greg KH
@ 2017-07-18 7:30 ` Alessandro Rubini
0 siblings, 0 replies; 5+ messages in thread
From: Alessandro Rubini @ 2017-07-18 7:30 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, riehecky, federico.vaga
> Ah, sorry, wrong "changelog". I meant the area that shows up in git
> about what this patch does. There's no description of it other than the
> Subject line.
Yes. Ok, I'll add a longer commit message for V4 of the whole
set. Tomorrow (/me leaving now to a client).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-18 7:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18 6:32 [PATCH V3 1/5] drivers/fmc: remove unused variable Alessandro Rubini
2017-07-18 6:53 ` Greg KH
2017-07-18 7:00 ` Alessandro Rubini
2017-07-18 7:23 ` Greg KH
2017-07-18 7:30 ` Alessandro Rubini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox