qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: joerg.roedel@amd.com, agraf@suse.de, qemu-devel@nongnu.org,
	avi@redhat.com, eduard.munteanu@linux360.ro, sw@weilnetz.de,
	rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH 1/7] Remove unnecessary casts from PCI DMA code in eepro100
Date: Mon, 12 Dec 2011 12:28:04 -0600	[thread overview]
Message-ID: <4EE647B4.20303@codemonkey.ws> (raw)
In-Reply-To: <1320368618-22733-2-git-send-email-david@gibson.dropbear.id.au>

On 11/03/2011 08:03 PM, David Gibson wrote:
> This patch removes some unnecessary casts in the eepro100 device,
> introduced by commit 16ef60c9a8eeee269f7cbc95219a431b1d7cbf29
> 'eepro100: Use PCI DMA stub functions'.
>
> Signed-off-by: David Gibson<david@gibson.dropbear.id.au>

Applied all.  Thanks.

Regards,

Anthony Liguori

> ---
>   hw/eepro100.c |    7 +++----
>   1 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/hw/eepro100.c b/hw/eepro100.c
> index 7d59e71..8769e33 100644
> --- a/hw/eepro100.c
> +++ b/hw/eepro100.c
> @@ -713,8 +713,7 @@ static void dump_statistics(EEPRO100State * s)
>        * values which really matter.
>        * Number of data should check configuration!!!
>        */
> -    pci_dma_write(&s->dev, s->statsaddr,
> -                  (uint8_t *)&s->statistics, s->stats_size);
> +    pci_dma_write(&s->dev, s->statsaddr,&s->statistics, s->stats_size);
>       stl_le_pci_dma(&s->dev, s->statsaddr + 0,
>                      s->statistics.tx_good_frames);
>       stl_le_pci_dma(&s->dev, s->statsaddr + 36,
> @@ -732,7 +731,7 @@ static void dump_statistics(EEPRO100State * s)
>
>   static void read_cb(EEPRO100State *s)
>   {
> -    pci_dma_read(&s->dev, s->cb_address, (uint8_t *)&s->tx, sizeof(s->tx));
> +    pci_dma_read(&s->dev, s->cb_address,&s->tx, sizeof(s->tx));
>       s->tx.status = le16_to_cpu(s->tx.status);
>       s->tx.command = le16_to_cpu(s->tx.command);
>       s->tx.link = le32_to_cpu(s->tx.link);
> @@ -1707,7 +1706,7 @@ static ssize_t nic_receive(VLANClientState *nc, const uint8_t * buf, size_t size
>       /* !!! */
>       eepro100_rx_t rx;
>       pci_dma_read(&s->dev, s->ru_base + s->ru_offset,
> -                 (uint8_t *)&rx, sizeof(eepro100_rx_t));
> +&rx, sizeof(eepro100_rx_t));
>       uint16_t rfd_command = le16_to_cpu(rx.command);
>       uint16_t rfd_size = le16_to_cpu(rx.size);
>

  reply	other threads:[~2011-12-12 18:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04  1:03 [Qemu-devel] [0/7] Remove unnecessary casts introduced by PCI DMA stubs series David Gibson
2011-11-04  1:03 ` [Qemu-devel] [PATCH 1/7] Remove unnecessary casts from PCI DMA code in eepro100 David Gibson
2011-12-12 18:28   ` Anthony Liguori [this message]
2011-11-04  1:03 ` [Qemu-devel] [PATCH 2/7] Remove unnecessary casts from PCI DMA code in e1000 David Gibson
2011-11-04  1:03 ` [Qemu-devel] [PATCH 3/7] Remove unnecessary casts from PCI DMA code in PCI IDE David Gibson
2011-11-04  1:03 ` [Qemu-devel] [PATCH 4/7] Remove unnecessary casts from PCI DMA code in lsi53c895a David Gibson
2011-11-04  1:03 ` [Qemu-devel] [PATCH 5/7] Remove unnecessary casts from PCI DMA code in rtl8139 David Gibson
2011-11-04  1:03 ` [Qemu-devel] [PATCH 6/7] Remove unnecessary casts from PCI DMA code in usb-ehci David Gibson
2011-11-04  1:03 ` [Qemu-devel] [PATCH 7/7] Remove unnecessary casts from PCI DMA code in usb-uhci David Gibson
2011-11-04 10:49 ` [Qemu-devel] [0/7] Remove unnecessary casts introduced by PCI DMA stubs series Andreas Färber
2011-11-28  2:49   ` David Gibson

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=4EE647B4.20303@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=eduard.munteanu@linux360.ro \
    --cc=joerg.roedel@amd.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=sw@weilnetz.de \
    /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;
as well as URLs for NNTP newsgroup(s).