WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 4/4] powerpc: remove cast from void*

To: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 4/4] powerpc: remove cast from void*
From: matt mooney <mfm@xxxxxxxxxxxxx>
Date: Mon, 13 Sep 2010 22:32:21 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, kernel-janitors@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxx, Paul Mackerras <paulus@xxxxxxxxx>, Anton Blanchard <anton@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 23 Sep 2010 05:20:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Unnecessary cast from void* in assignment.

Signed-off-by: matt mooney <mfm@xxxxxxxxxxxxx>
---
 arch/powerpc/platforms/pseries/hvCall_inst.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c 
b/arch/powerpc/platforms/pseries/hvCall_inst.c
index e19ff02..f106662 100644
--- a/arch/powerpc/platforms/pseries/hvCall_inst.c
+++ b/arch/powerpc/platforms/pseries/hvCall_inst.c
@@ -55,7 +55,7 @@ static void hc_stop(struct seq_file *m, void *p)
 static int hc_show(struct seq_file *m, void *p)
 {
        unsigned long h_num = (unsigned long)p;
-       struct hcall_stats *hs = (struct hcall_stats *)m->private;
+       struct hcall_stats *hs = m->private;
 
        if (hs[h_num].num_calls) {
                if (cpu_has_feature(CPU_FTR_PURR))
-- 
1.7.2.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 4/4] powerpc: remove cast from void*, matt mooney <=