From: Haneen Mohammed <hamohammed.sa@gmail.com>
To: Julia Lawall <julia.lawall@lip6.fr>, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: rts5208: fix check for dma mapping error
Date: Tue, 9 Feb 2016 14:21:01 +0300 [thread overview]
Message-ID: <20160209112101.GA27970@haneenVB> (raw)
In-Reply-To: <alpine.DEB.2.10.1602091148570.2578@hadrien>
On Tue, Feb 09, 2016 at 11:50:58AM +0100, Julia Lawall wrote:
>
>
> On Tue, 9 Feb 2016, Haneen Mohammed wrote:
>
> > use dma_mapping_error() instead of comparing the returned address with
> > zero after dma_map_single().
>
> Acked-by: Julia Lawall <julia.lawall@lip6.fr>
>
> However, the parentheses in &(rtsx->pci->dev) are really unpleasant.
> Especially since they make the call to dma_map_single different from the
> call to dma_mapping_error.
>
> Maybe you could send a patch series to also get rid of them?
>
> julia
>
Sure. should I send it as v2? Also, I noticed in the discussion in the
previous thread about keeping the acked, yet I'm not sure how to do it.
could yo advise me on that please?
Thank you,
Haneen
> >
> > Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> > ---
> > drivers/staging/rts5208/rtsx_transport.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/staging/rts5208/rtsx_transport.c b/drivers/staging/rts5208/rtsx_transport.c
> > index f27491e..0c9549b 100644
> > --- a/drivers/staging/rts5208/rtsx_transport.c
> > +++ b/drivers/staging/rts5208/rtsx_transport.c
> > @@ -653,7 +653,7 @@ static int rtsx_transfer_buf(struct rtsx_chip *chip, u8 card, void *buf,
> > return -ENXIO;
> >
> > addr = dma_map_single(&(rtsx->pci->dev), buf, len, dma_dir);
> > - if (!addr)
> > + if (dma_mapping_error(&rtsx->pci->dev, addr))
> > return -ENOMEM;
> >
> > if (card == SD_CARD)
> > --
> > 1.9.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/20160209103540.GA27735%40haneenVB.
> > For more options, visit https://groups.google.com/d/optout.
> >
next prev parent reply other threads:[~2016-02-09 11:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-09 10:35 [PATCH] Staging: rts5208: fix check for dma mapping error Haneen Mohammed
2016-02-09 10:50 ` [Outreachy kernel] " Julia Lawall
2016-02-09 11:21 ` Haneen Mohammed [this message]
2016-02-09 12:00 ` Julia Lawall
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=20160209112101.GA27970@haneenVB \
--to=hamohammed.sa@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=outreachy-kernel@googlegroups.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 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.