Compiler warning when building 2.6.13-rc2

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

 



This report describes a trivial warning that arises when compiling kernel 2.6.13-rc2. In routine yenta_allocate_res of yenta_socket.c, the void function tries to return a 0. The following patch removes the problem:

--- linux-2.6.13-rc2/drivers/pcmcia/yenta_socket.c_old 2005-07-06 15:41:41.000000000 -0500 +++ linux-2.6.13-rc2/drivers/pcmcia/yenta_socket.c 2005-07-06 15:42:04.000000000 -0500
@@ -552,7 +552,7 @@
 	res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
 	/* Already allocated? */
 	if (res->parent)
-		return 0;
+		return;

 	/* The granularity of the memory limit is 4kB, on IO it's 4 bytes */
 	mask = ~0xfff;

Thanks, Larry

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux