public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix unnecessary increment in firmware_class_hotplug()
@ 2004-11-25 11:19 Keiichiro Tokunaga
  2004-11-26 20:30 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Keiichiro Tokunaga @ 2004-11-25 11:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: Keiichiro Tokunaga

  This patch is to fix unnecessary increment of 'i' used to
specify an element of an arry 'envp[]' in firmware_class_hotplug().
The 'i' is already incremented in add_hotplug_env_var(), actually.

Thanks,
Keiichiro Tokunaga

Signed-off-by: Keiichiro Tokunaga <tokunaga.keiich@jp.fujitsu.com>
Status: Compiled on 2.6.10-rc2-mm3
---

 linux-2.6.10-rc2-mm3-kei/drivers/base/firmware_class.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/base/firmware_class.c~fix_firmware_class_hotplug drivers/base/firmware_class.c
--- linux-2.6.10-rc2-mm3/drivers/base/firmware_class.c~fix_firmware_class_hotplug	2004-11-25 18:31:19.278701104 +0900
+++ linux-2.6.10-rc2-mm3-kei/drivers/base/firmware_class.c	2004-11-25 18:31:37.555922544 +0900
@@ -103,7 +103,7 @@ firmware_class_hotplug(struct class_devi
 			"FIRMWARE=%s", fw_priv->fw_id))
 		return -ENOMEM;
 
-	envp[i++] = NULL;
+	envp[i] = NULL;
 
 	return 0;
 }

_


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-29 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-25 11:19 [PATCH] fix unnecessary increment in firmware_class_hotplug() Keiichiro Tokunaga
2004-11-26 20:30 ` Marcel Holtmann
2004-11-29 19:07   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox