mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Silviu Popescu <silviupopescu1990@gmail.com>
Cc: linux-scsi@vger.kernel.org, hare@suse.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] aic7xxx: fix coccicheck warnings
Date: Tue, 12 Mar 2013 09:24:56 +0000	[thread overview]
Message-ID: <1363080296.2401.23.camel@dabdike.int.hansenpartnership.com> (raw)
In-Reply-To: <CAPWTe+JAmhnaxbfW2LW1=YGM4PKDyfW7WGgMHEwiPmw3yKtbTw@mail.gmail.com>

On Tue, 2013-03-12 at 08:48 +0200, Silviu Popescu wrote:
> On Sun, Mar 10, 2013 at 10:04 PM, Silviu-Mihai Popescu
> <silviupopescu1990@gmail.com> wrote:
> > This replaces a call to kmalloc() followed by memset() with just one
> > call to kzalloc().
> >
> > Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
> > ---
> >  drivers/scsi/aic7xxx/aic79xx_osm.c |    3 +--
> >  drivers/scsi/aic7xxx/aic7xxx_osm.c |    3 +--
> >  2 files changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c
> > index 9328121..f6fdb65 100644
> > --- a/drivers/scsi/aic7xxx/aic79xx_osm.c
> > +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c
> > @@ -1324,10 +1324,9 @@ int
> >  ahd_platform_alloc(struct ahd_softc *ahd, void *platform_arg)
> >  {
> >         ahd->platform_data =
> > -           kmalloc(sizeof(struct ahd_platform_data), GFP_ATOMIC);
> > +           kzalloc(sizeof(struct ahd_platform_data), GFP_ATOMIC);
> >         if (ahd->platform_data == NULL)
> >                 return (ENOMEM);
> > -       memset(ahd->platform_data, 0, sizeof(struct ahd_platform_data));
> >         ahd->platform_data->irq = AHD_LINUX_NOIRQ;
> >         ahd_lockinit(ahd);
> >         ahd->seltime = (aic79xx_seltime & 0x3) << 4;
> > diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
> > index 5a477cd..54bb1de 100644
> > --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
> > +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
> > @@ -1222,10 +1222,9 @@ ahc_platform_alloc(struct ahc_softc *ahc, void *platform_arg)
> >  {
> >
> >         ahc->platform_data =
> > -           kmalloc(sizeof(struct ahc_platform_data), GFP_ATOMIC);
> > +           kzalloc(sizeof(struct ahc_platform_data), GFP_ATOMIC);
> >         if (ahc->platform_data == NULL)
> >                 return (ENOMEM);
> > -       memset(ahc->platform_data, 0, sizeof(struct ahc_platform_data));
> >         ahc->platform_data->irq = AHC_LINUX_NOIRQ;
> >         ahc_lockinit(ahc);
> >         ahc->seltime = (aic7xxx_seltime & 0x3) << 4;
> > --
> > 1.7.9.5
> >
> 
> Hello,
> 
> Would anyone be so kind as to review this?

For the ancient drivers, like aic7xxx, we keep them in deep freeze
maintenance, which means no cosmetic changes like this, I'm afraid.

Thanks,

James



      reply	other threads:[~2013-03-12  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-10 20:04 Silviu-Mihai Popescu
2013-03-12  6:48 ` Silviu Popescu
2013-03-12  9:24   ` James Bottomley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1363080296.2401.23.camel@dabdike.int.hansenpartnership.com \
    --to=james.bottomley@hansenpartnership.com \
    --cc=hare@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=silviupopescu1990@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®