[PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-11 Thread Matei Oprea
It's easier to use kcalloc for allocating arrays. While at it also remove useless casting value. Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- drivers/scsi/lpfc/lpfc_init.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-09 Thread Boaz Harrosh
On 04/08/2014 11:42 PM, Matei Oprea wrote: > It's easier to use kcalloc for allocating arrays. While at it > also remove useless casting value. > > Signed-off-by: Matei Oprea > Cc: ROSEdu Kernel Community > --- > drivers/scsi/lpfc/lpfc_init.c | 14 -- > 1 file changed, 8 insertions(

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Joe Perches
On Tue, 2014-04-08 at 23:42 +0300, Matei Oprea wrote: > It's easier to use kcalloc for allocating arrays. While at it > also remove useless casting value. [] > diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c [] > @@ -4742,12 +4742,14 @@ lpfc_sli_driver_resource_setup(stru

[PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Matei Oprea
It's easier to use kcalloc for allocating arrays. While at it also remove useless casting value. Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- drivers/scsi/lpfc/lpfc_init.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_ini

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Matei Oprea
Ok. Sorry. ᐧ On Tue, Apr 8, 2014 at 11:20 PM, Joe Perches wrote: > On Tue, 2014-04-08 at 23:18 +0300, Matei Oprea wrote: >> It's easier to use kcalloc for allocating arrays. While at it >> also remove useless casting value. > > Don't send a patch against your bad patch. > Send a new patch with ju

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Joe Perches
On Tue, 2014-04-08 at 23:18 +0300, Matei Oprea wrote: > It's easier to use kcalloc for allocating arrays. While at it > also remove useless casting value. Don't send a patch against your bad patch. Send a new patch with just the appropriate changes. -- To unsubscribe from this list: send the lin

[PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Matei Oprea
It's easier to use kcalloc for allocating arrays. While at it also remove useless casting value. Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- drivers/scsi/lpfc/lpfc_init.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/dri

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Joe Perches
On Tue, 2014-04-08 at 22:44 +0300, Matei Oprea wrote: > It's easier to use kcalloc for allocating arrays. While at it > also remove useless casting value. > > Signed-off-by: Matei Oprea > Cc: ROSEdu Kernel Community > --- > drivers/scsi/lpfc/lpfc_init.c | 10 +- > 1 file changed, 5 inse

[PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-08 Thread Matei Oprea
It's easier to use kcalloc for allocating arrays. While at it also remove useless casting value. Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- drivers/scsi/lpfc/lpfc_init.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-07 Thread Boaz Harrosh
On 03/18/2014 10:51 PM, Matei Oprea wrote: > It's easier to use kcalloc for allocating arrays. While at it > also remove useless casting value. > > Signed-off-by: Matei Oprea > Cc: ROSEdu Kernel Community > --- > drivers/scsi/lpfc/lpfc_init.c |4 ++-- > 1 file changed, 2 insertions(+), 2 de

Re: [PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-04-07 Thread Matei Oprea
Any comments on this ? ᐧ On Tue, Mar 18, 2014 at 10:51 PM, Matei Oprea wrote: > It's easier to use kcalloc for allocating arrays. While at it > also remove useless casting value. > > Signed-off-by: Matei Oprea > Cc: ROSEdu Kernel Community > --- > drivers/scsi/lpfc/lpfc_init.c |4 ++-- > 1

[PATCH] scsi: lpfc: lpfc_init: use kcalloc for allocating memory

2014-03-18 Thread Matei Oprea
It's easier to use kcalloc for allocating arrays. While at it also remove useless casting value. Signed-off-by: Matei Oprea Cc: ROSEdu Kernel Community --- drivers/scsi/lpfc/lpfc_init.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/dr