public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/ieee1394/csr1212.c: remove dead code
@ 2005-11-20 23:10 Adrian Bunk
  2005-11-21 19:45 ` Stefan Richter
  0 siblings, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2005-11-20 23:10 UTC (permalink / raw)
  To: bcollins, scjody; +Cc: linux1394-devel, linux-kernel

The Coverity checker spotted that the same check was already done above.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.15-rc1-mm2-full/drivers/ieee1394/csr1212.c.old	2005-11-20 22:50:14.000000000 +0100
+++ linux-2.6.15-rc1-mm2-full/drivers/ieee1394/csr1212.c	2005-11-20 22:50:36.000000000 +0100
@@ -1616,12 +1616,8 @@
 	 * and make cache regions for them */
 	for (dentry = csr->root_kv->value.directory.dentries_head;
 	     dentry; dentry = dentry->next) {
-		if (dentry->kv->key.id == CSR1212_KV_ID_EXTENDED_ROM) {
+		if (dentry->kv->key.id == CSR1212_KV_ID_EXTENDED_ROM)
 			csr1212_get_keyval(csr, dentry->kv);
-
-			if (ret != CSR1212_SUCCESS)
-				return ret;
-		}
 	}
 
 	return CSR1212_SUCCESS;


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

end of thread, other threads:[~2005-11-21 22:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20 23:10 [2.6 patch] drivers/ieee1394/csr1212.c: remove dead code Adrian Bunk
2005-11-21 19:45 ` Stefan Richter
2005-11-21 21:41   ` Jody McIntyre
2005-11-21 22:02     ` Stefan Richter
2005-11-21 22:23       ` Jody McIntyre
2005-11-21 22:24       ` [PATCH 1/2] csr1212: check results of keyval reads Jody McIntyre
2005-11-21 22:28       ` [PATCH 2/2] csr1212: add check for !valid Jody McIntyre

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