From 0a5eaa9d0e286bd36a122b77c762178c20f3b5de Mon Sep 17 00:00:00 2001 From: Max Khon Date: Mon, 9 Feb 2009 16:58:18 +0000 Subject: [PATCH] Do not self-initialize a variable. Found with: Coverity Prevent(tm) CID: 3864, 3865 --- sys/dev/firewire/if_fwe.c | 2 +- sys/dev/firewire/if_fwip.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c index dfc44cab6b6b..1c88af8eaa4c 100644 --- a/sys/dev/firewire/if_fwe.c +++ b/sys/dev/firewire/if_fwe.c @@ -445,7 +445,7 @@ fwe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) #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)) { diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c index b99e37892e81..90df5a52c4f8 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -427,7 +427,7 @@ fwip_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) #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)) {