diff mbox

[2/6] wdt_i6300esb: remove useless casts from void *

Message ID a3051f6d34622c689f46849114d1c2ff4d3d5105.1255563370.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Oct. 14, 2009, 11:39 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/wdt_i6300esb.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

Comments

Richard W.M. Jones Oct. 15, 2009, 8:39 a.m. UTC | #1
On Thu, Oct 15, 2009 at 01:39:58AM +0200, Juan Quintela wrote:
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> -    I6300State *d = (I6300State *) vp;
> +    I6300State *d = vp;
[etc]

Obvious changes, ACK.

Rich.
diff mbox

Patch

diff --git a/hw/wdt_i6300esb.c b/hw/wdt_i6300esb.c
index ab8210b..3d920ea 100644
--- a/hw/wdt_i6300esb.c
+++ b/hw/wdt_i6300esb.c
@@ -163,7 +163,7 @@  static void i6300esb_reset(I6300State *d)
  */
 static void i6300esb_timer_expired(void *vp)
 {
-    I6300State *d = (I6300State *) vp;
+    I6300State *d = vp;

     i6300esb_debug("stage %d\n", d->stage);

@@ -257,7 +257,7 @@  static uint32_t i6300esb_mem_readb(void *vp, target_phys_addr_t addr)
 static uint32_t i6300esb_mem_readw(void *vp, target_phys_addr_t addr)
 {
     uint32_t data = 0;
-    I6300State *d = (I6300State *) vp;
+    I6300State *d = vp;

     i6300esb_debug("addr = %x\n", (int) addr);

@@ -281,7 +281,7 @@  static uint32_t i6300esb_mem_readl(void *vp, target_phys_addr_t addr)

 static void i6300esb_mem_writeb(void *vp, target_phys_addr_t addr, uint32_t val)
 {
-    I6300State *d = (I6300State *) vp;
+    I6300State *d = vp;

     i6300esb_debug("addr = %x, val = %x\n", (int) addr, val);

@@ -293,7 +293,7 @@  static void i6300esb_mem_writeb(void *vp, target_phys_addr_t addr, uint32_t val)

 static void i6300esb_mem_writew(void *vp, target_phys_addr_t addr, uint32_t val)
 {
-    I6300State *d = (I6300State *) vp;
+    I6300State *d = vp;

     i6300esb_debug("addr = %x, val = %x\n", (int) addr, val);

@@ -326,7 +326,7 @@  static void i6300esb_mem_writew(void *vp, target_phys_addr_t addr, uint32_t val)

 static void i6300esb_mem_writel(void *vp, target_phys_addr_t addr, uint32_t val)
 {
-    I6300State *d = (I6300State *) vp;
+    I6300State *d = vp;

     i6300esb_debug ("addr = %x, val = %x\n", (int) addr, val);