Source-Changes-HG archive

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

[src/trunk]: src/sys Remove unused assignment. Found by the lgtm bot.



details:   https://anonhg.NetBSD.org/src/rev/49eb3b94c70e
branches:  trunk
changeset: 454616:49eb3b94c70e
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Sep 23 06:53:09 2019 +0000

description:
Remove unused assignment. Found by the lgtm bot.

diffstat:

 sys/compat/common/if_43.c |  6 +++---
 sys/dev/ieee1394/sbp.c    |  5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (53 lines):

diff -r ce1051d96231 -r 49eb3b94c70e sys/compat/common/if_43.c
--- a/sys/compat/common/if_43.c Mon Sep 23 06:50:04 2019 +0000
+++ b/sys/compat/common/if_43.c Mon Sep 23 06:53:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_43.c,v 1.22 2019/05/17 07:37:11 msaitoh Exp $       */
+/*     $NetBSD: if_43.c,v 1.23 2019/09/23 06:53:09 maxv Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1990, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_43.c,v 1.22 2019/05/17 07:37:11 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_43.c,v 1.23 2019/09/23 06:53:09 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -253,7 +253,7 @@
        }
        if (cmd != ocmd) {
                oifr = data;
-               data = ifr = &ifrb;
+               ifr = &ifrb;
                IFREQO2N_43(oifr, ifr);
        }
 
diff -r ce1051d96231 -r 49eb3b94c70e sys/dev/ieee1394/sbp.c
--- a/sys/dev/ieee1394/sbp.c    Mon Sep 23 06:50:04 2019 +0000
+++ b/sys/dev/ieee1394/sbp.c    Mon Sep 23 06:53:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbp.c,v 1.37 2018/09/03 16:29:31 riastradh Exp $       */
+/*     $NetBSD: sbp.c,v 1.38 2019/09/23 06:56:20 maxv Exp $    */
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
  * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbp.c,v 1.37 2018/09/03 16:29:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbp.c,v 1.38 2019/09/23 06:56:20 maxv Exp $");
 
 
 #include <sys/param.h>
@@ -2052,7 +2052,6 @@
                bus_dmamap_destroy(sc->sc_dmat, sdev->ocb[i].dmamap);
        fwdma_free(sdev->dma.dma_tag, sdev->dma.dma_map, sdev->dma.v_addr);
        free(sdev, M_SBP);
-       sdev = NULL;
 }
 
 static void



Home | Main Index | Thread Index | Old Index