Author: mav
Date: Wed Sep 10 07:00:36 2014
New Revision: 271360
URL: http://svnweb.freebsd.org/changeset/base/271360

Log:
  Remove uninitialized and unused variable, reported by Coverity.
  
  CID:          1230015

Modified:
  head/sys/cam/ctl/ctl.c

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c      Wed Sep 10 06:57:24 2014        (r271359)
+++ head/sys/cam/ctl/ctl.c      Wed Sep 10 07:00:36 2014        (r271360)
@@ -12021,12 +12021,11 @@ ctl_lun_reset(struct ctl_lun *lun, union
        return (0);
 }
 
-static int
+static void
 ctl_abort_tasks_lun(struct ctl_lun *lun, uint32_t targ_port, uint32_t init_id,
     int other_sc)
 {
        union ctl_io *xio;
-       int found;
 
        mtx_assert(&lun->lun_lock, MA_OWNED);
 
@@ -12048,7 +12047,6 @@ ctl_abort_tasks_lun(struct ctl_lun *lun,
                            init_id != xio->io_hdr.nexus.initid.id)
                                xio->io_hdr.flags |= CTL_FLAG_ABORT_STATUS;
                        xio->io_hdr.flags |= CTL_FLAG_ABORT;
-                       found = 1;
                        if (!other_sc && !(lun->flags & CTL_LUN_PRIMARY_SC)) {
                                union ctl_ha_msg msg_info;
 
@@ -12064,7 +12062,6 @@ ctl_abort_tasks_lun(struct ctl_lun *lun,
                        }
                }
        }
-       return (found);
 }
 
 static int
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to