Date: Tue, 22 Jul 2025 22:56:48 GMT From: Alan Somers <asomers@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d3c9f62862e4 - main - ctl: delete dead code in the tests Message-ID: <202507222256.56MMumKY071157@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=d3c9f62862e4e76acec581a2e2c0aa05d7145e24 commit d3c9f62862e4e76acec581a2e2c0aa05d7145e24 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2025-07-22 22:55:40 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2025-07-22 22:55:40 +0000 ctl: delete dead code in the tests This function has always been dead. It isn't needed, since ctladm will automatically load the module, if needed. MFC after: 2 weeks Sponsored by: ConnectWise --- tests/sys/cam/ctl/ctl.subr | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/sys/cam/ctl/ctl.subr b/tests/sys/cam/ctl/ctl.subr index 5da441b806f0..6cc02d774bdb 100644 --- a/tests/sys/cam/ctl/ctl.subr +++ b/tests/sys/cam/ctl/ctl.subr @@ -25,15 +25,6 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -load_modules() { - if ! kldstat -q -m ctl; then - kldload ctl || atf_skip "could not load ctl kernel mod" - fi - if ! ctladm port -o on -p 0; then - atf_skip "could not enable the camsim frontend" - fi -} - find_device() { LUN=$1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507222256.56MMumKY071157>