* [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
@ 2015-12-02 20:43 Geyslan G. Bem
2015-12-04 16:25 ` Greg Kroah-Hartman
0 siblings, 1 reply; 7+ messages in thread
From: Geyslan G. Bem @ 2015-12-02 20:43 UTC (permalink / raw)
To: peter.senna; +Cc: Geyslan G. Bem, Greg Kroah-Hartman, linux-usb, linux-kernel
Replace dma_pool_alloc and memset with a single call to dma_pool_zalloc.
Caught by coccinelle.
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
---
drivers/usb/host/whci/qset.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/host/whci/qset.c b/drivers/usb/host/whci/qset.c
index dc31c42..3297473 100644
--- a/drivers/usb/host/whci/qset.c
+++ b/drivers/usb/host/whci/qset.c
@@ -30,10 +30,9 @@ struct whc_qset *qset_alloc(struct whc *whc, gfp_t mem_flags)
struct whc_qset *qset;
dma_addr_t dma;
- qset = dma_pool_alloc(whc->qset_pool, mem_flags, &dma);
+ qset = dma_pool_zalloc(whc->qset_pool, mem_flags, &dma);
if (qset == NULL)
return NULL;
- memset(qset, 0, sizeof(struct whc_qset));
qset->qset_dma = dma;
qset->whc = whc;
--
2.6.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
2015-12-02 20:43 [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc Geyslan G. Bem
@ 2015-12-04 16:25 ` Greg Kroah-Hartman
2015-12-04 16:33 ` Geyslan G. Bem
0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2015-12-04 16:25 UTC (permalink / raw)
To: Geyslan G. Bem; +Cc: peter.senna, linux-usb, linux-kernel
On Wed, Dec 02, 2015 at 05:43:11PM -0300, Geyslan G. Bem wrote:
> Replace dma_pool_alloc and memset with a single call to dma_pool_zalloc.
>
> Caught by coccinelle.
>
> Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
> ---
> drivers/usb/host/whci/qset.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
This, and patch 3/3 were also already done by someone else :(
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
2015-12-04 16:25 ` Greg Kroah-Hartman
@ 2015-12-04 16:33 ` Geyslan G. Bem
2015-12-04 16:44 ` Greg Kroah-Hartman
0 siblings, 1 reply; 7+ messages in thread
From: Geyslan G. Bem @ 2015-12-04 16:33 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Peter Senna Tschudin, linux-usb, LKML
2015-12-04 13:25 GMT-03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>:
> On Wed, Dec 02, 2015 at 05:43:11PM -0300, Geyslan G. Bem wrote:
>> Replace dma_pool_alloc and memset with a single call to dma_pool_zalloc.
>>
>> Caught by coccinelle.
>>
>> Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
>> ---
>> drivers/usb/host/whci/qset.c | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> This, and patch 3/3 were also already done by someone else :(
I see. No problem at all.
If you wish, you could list me subsystems in need of maintenance.
Thanks.
--
Regards,
Geyslan G. Bem
hackingbits.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
2015-12-04 16:33 ` Geyslan G. Bem
@ 2015-12-04 16:44 ` Greg Kroah-Hartman
2015-12-04 17:13 ` Geyslan G. Bem
0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2015-12-04 16:44 UTC (permalink / raw)
To: Geyslan G. Bem; +Cc: Peter Senna Tschudin, linux-usb, LKML
On Fri, Dec 04, 2015 at 01:33:18PM -0300, Geyslan G. Bem wrote:
>
> If you wish, you could list me subsystems in need of maintenance.
I don't understand what you mean by this.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
2015-12-04 16:44 ` Greg Kroah-Hartman
@ 2015-12-04 17:13 ` Geyslan G. Bem
2015-12-04 17:18 ` Greg Kroah-Hartman
0 siblings, 1 reply; 7+ messages in thread
From: Geyslan G. Bem @ 2015-12-04 17:13 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Peter Senna Tschudin, linux-usb, LKML
2015-12-04 13:44 GMT-03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>:
> On Fri, Dec 04, 2015 at 01:33:18PM -0300, Geyslan G. Bem wrote:
>>
>> If you wish, you could list me subsystems in need of maintenance.
>
> I don't understand what you mean by this.
I meant that would be great to know which usb subsystems you do prefer
that I continue cleaning/refactoring or if any would be ok. :)
--
Regards,
Geyslan G. Bem
hackingbits.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
2015-12-04 17:13 ` Geyslan G. Bem
@ 2015-12-04 17:18 ` Greg Kroah-Hartman
2015-12-04 18:05 ` Geyslan G. Bem
0 siblings, 1 reply; 7+ messages in thread
From: Greg Kroah-Hartman @ 2015-12-04 17:18 UTC (permalink / raw)
To: Geyslan G. Bem; +Cc: Peter Senna Tschudin, linux-usb, LKML
On Fri, Dec 04, 2015 at 02:13:35PM -0300, Geyslan G. Bem wrote:
> 2015-12-04 13:44 GMT-03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>:
> > On Fri, Dec 04, 2015 at 01:33:18PM -0300, Geyslan G. Bem wrote:
> >>
> >> If you wish, you could list me subsystems in need of maintenance.
> >
> > I don't understand what you mean by this.
>
> I meant that would be great to know which usb subsystems you do prefer
> that I continue cleaning/refactoring or if any would be ok. :)
Any part of the drivers/usb/* tree that you find needs cleanups and
fixes like these are great to do, please send patches for this, I'll
gladly take them.
thanks,
gre k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc
2015-12-04 17:18 ` Greg Kroah-Hartman
@ 2015-12-04 18:05 ` Geyslan G. Bem
0 siblings, 0 replies; 7+ messages in thread
From: Geyslan G. Bem @ 2015-12-04 18:05 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Peter Senna Tschudin, linux-usb, LKML
2015-12-04 14:18 GMT-03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>:
> On Fri, Dec 04, 2015 at 02:13:35PM -0300, Geyslan G. Bem wrote:
>> 2015-12-04 13:44 GMT-03:00 Greg Kroah-Hartman <gregkh@linuxfoundation.org>:
>> > On Fri, Dec 04, 2015 at 01:33:18PM -0300, Geyslan G. Bem wrote:
>> >>
>> >> If you wish, you could list me subsystems in need of maintenance.
>> >
>> > I don't understand what you mean by this.
>>
>> I meant that would be great to know which usb subsystems you do prefer
>> that I continue cleaning/refactoring or if any would be ok. :)
>
> Any part of the drivers/usb/* tree that you find needs cleanups and
> fixes like these are great to do, please send patches for this, I'll
> gladly take them.
Nice, I'll indeed.
Thanks.
>
> thanks,
>
> gre k-h
--
Regards,
Geyslan G. Bem
hackingbits.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-12-04 18:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-02 20:43 [PATCH 2/3] usb: whci: replace dma_pool_alloc and memset with dma_pool_zalloc Geyslan G. Bem
2015-12-04 16:25 ` Greg Kroah-Hartman
2015-12-04 16:33 ` Geyslan G. Bem
2015-12-04 16:44 ` Greg Kroah-Hartman
2015-12-04 17:13 ` Geyslan G. Bem
2015-12-04 17:18 ` Greg Kroah-Hartman
2015-12-04 18:05 ` Geyslan G. Bem
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).