[PATCH] eliminate compiler warning for xpc_channel.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Placate a compiler warning that 'msg' may be used uninitialized in
function xpc_initiate_allocate().

Signed-off-by: Dean Nelson <dcn@xxxxxxx>


Index: linux-2.6/arch/ia64/sn/kernel/xpc_channel.c
===================================================================
--- linux-2.6.orig/arch/ia64/sn/kernel/xpc_channel.c	2006-04-03 08:26:22.000000000 -0500
+++ linux-2.6/arch/ia64/sn/kernel/xpc_channel.c	2006-04-04 08:25:51.691831163 -0500
@@ -1831,7 +1831,7 @@
 {
 	struct xpc_partition *part = &xpc_partitions[partid];
 	enum xpc_retval ret = xpcUnknownReason;
-	struct xpc_msg *msg;
+	struct xpc_msg *msg = msg;
 
 
 	DBUG_ON(partid <= 0 || partid >= XP_MAX_PARTITIONS);
-
: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux