The branch main has been updated by asomers:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d3c9f62862e4e76acec581a2e2c0aa05d7145e24

commit d3c9f62862e4e76acec581a2e2c0aa05d7145e24
Author:     Alan Somers <asom...@freebsd.org>
AuthorDate: 2025-07-22 22:55:40 +0000
Commit:     Alan Somers <asom...@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
 

Reply via email to