Date: Mon, 6 Oct 2014 12:42:06 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r272623 - stable/10/sys/cam/ctl Message-ID: <201410061242.s96Cg6Qx060206@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Mon Oct 6 12:42:06 2014 New Revision: 272623 URL: https://svnweb.freebsd.org/changeset/base/272623 Log: MFC r271360: Remove uninitialized and unused variable, reported by Coverity. Modified: stable/10/sys/cam/ctl/ctl.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cam/ctl/ctl.c ============================================================================== --- stable/10/sys/cam/ctl/ctl.c Mon Oct 6 12:41:07 2014 (r272622) +++ stable/10/sys/cam/ctl/ctl.c Mon Oct 6 12:42:06 2014 (r272623) @@ -12032,12 +12032,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); @@ -12059,7 +12058,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; @@ -12075,7 +12073,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?201410061242.s96Cg6Qx060206>