Date: Wed, 10 Sep 2014 07:00:37 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271360 - head/sys/cam/ctl Message-ID: <201409100700.s8A70b3Y069921@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409100700.s8A70b3Y069921>