Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 16:58:18 +0000 (UTC)
From:      Max Khon <fjoe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188394 - head/sys/dev/firewire
Message-ID:  <200902091658.n19GwIOk065678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fjoe
Date: Mon Feb  9 16:58:18 2009
New Revision: 188394
URL: http://svn.freebsd.org/changeset/base/188394

Log:
  Do not self-initialize a variable.
  
  Found with:	Coverity Prevent(tm)
  CID:		3864, 3865

Modified:
  head/sys/dev/firewire/if_fwe.c
  head/sys/dev/firewire/if_fwip.c

Modified: head/sys/dev/firewire/if_fwe.c
==============================================================================
--- head/sys/dev/firewire/if_fwe.c	Mon Feb  9 16:57:07 2009	(r188393)
+++ head/sys/dev/firewire/if_fwe.c	Mon Feb  9 16:58:18 2009	(r188394)
@@ -445,7 +445,7 @@ fwe_ioctl(struct ifnet *ifp, u_long cmd,
 #ifdef DEVICE_POLLING
 		    {
 			struct ifreq *ifr = (struct ifreq *) data;
-			struct firewire_comm *fc = fc = fwe->fd.fc;
+			struct firewire_comm *fc = fwe->fd.fc;
 
 			if (ifr->ifr_reqcap & IFCAP_POLLING &&
 			    !(ifp->if_capenable & IFCAP_POLLING)) {

Modified: head/sys/dev/firewire/if_fwip.c
==============================================================================
--- head/sys/dev/firewire/if_fwip.c	Mon Feb  9 16:57:07 2009	(r188393)
+++ head/sys/dev/firewire/if_fwip.c	Mon Feb  9 16:58:18 2009	(r188394)
@@ -427,7 +427,7 @@ fwip_ioctl(struct ifnet *ifp, u_long cmd
 #ifdef DEVICE_POLLING
 	    {
 		struct ifreq *ifr = (struct ifreq *) data;
-		struct firewire_comm *fc = fc = fwip->fd.fc;
+		struct firewire_comm *fc = fwip->fd.fc;
 
 		if (ifr->ifr_reqcap & IFCAP_POLLING &&
 		    !(ifp->if_capenable & IFCAP_POLLING)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902091658.n19GwIOk065678>