Author: araujo
Date: Tue Aug 25 15:34:28 2015
New Revision: 287132
URL: https://svnweb.freebsd.org/changeset/base/287132

Log:
  Code cleanup unused-but-set-variable spotted by gcc.
  
  Reviewed by:  royger
  Approved by:  bapt (mentor)
  Differential Revision:        D3476

Modified:
  head/sys/dev/xen/blkback/blkback.c
  head/sys/dev/xen/netfront/netfront.c
  head/sys/dev/xen/xenstore/xenstore.c

Modified: head/sys/dev/xen/blkback/blkback.c
==============================================================================
--- head/sys/dev/xen/blkback/blkback.c  Tue Aug 25 15:33:09 2015        
(r287131)
+++ head/sys/dev/xen/blkback/blkback.c  Tue Aug 25 15:34:28 2015        
(r287132)
@@ -2245,7 +2245,6 @@ xbb_dispatch_file(struct xbb_softc *xbb,
        struct xbb_file_data *file_data;
        u_int                 seg_idx;
        u_int                 nseg;
-       off_t                 sectors_sent;
        struct uio            xuio;
        struct xbb_sg        *xbb_sg;
        struct iovec         *xiovec;
@@ -2256,7 +2255,6 @@ xbb_dispatch_file(struct xbb_softc *xbb,
        int                   error;
 
        file_data = &xbb->backend.file;
-       sectors_sent = 0;
        error = 0;
        bzero(&xuio, sizeof(xuio));
 

Modified: head/sys/dev/xen/netfront/netfront.c
==============================================================================
--- head/sys/dev/xen/netfront/netfront.c        Tue Aug 25 15:33:09 2015        
(r287131)
+++ head/sys/dev/xen/netfront/netfront.c        Tue Aug 25 15:34:28 2015        
(r287132)
@@ -600,9 +600,6 @@ setup_device(device_t dev, struct netfro
        netif_tx_sring_t *txs;
        netif_rx_sring_t *rxs;
        int error;
-       struct ifnet *ifp;
-       
-       ifp = info->xn_ifp;
 
        info->tx_ring_ref = GRANT_REF_INVALID;
        info->rx_ring_ref = GRANT_REF_INVALID;

Modified: head/sys/dev/xen/xenstore/xenstore.c
==============================================================================
--- head/sys/dev/xen/xenstore/xenstore.c        Tue Aug 25 15:33:09 2015        
(r287131)
+++ head/sys/dev/xen/xenstore/xenstore.c        Tue Aug 25 15:34:28 2015        
(r287132)
@@ -1427,7 +1427,6 @@ xs_rm_tree(struct xs_transaction xbt, co
        char *cur_path;
        const char **dir;
        int error;
-       int empty;
 
 retry:
        root_path_sbuf = xs_join(base, node);
@@ -1444,7 +1443,6 @@ retry:
                xbt = local_xbt;
        }
 
-       empty = 0;
        while (1) {
                u_int count;
                u_int i;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to