From 376fc997e895b049eb7bae75a0e6c3612a083fc2 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 25 Jan 2020 21:48:44 +0000 Subject: Drivers that implement their own *minphys() don't need to call the system minphys(). scsi_minphys() will do that and cd/sd/st will call scsi_minphys(). ok jmatthew@ as part of larger diff --- sys/dev/sdmmc/sdmmc_scsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/sdmmc') diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index 870d0d15da2..b6c175f013f 100644 --- a/sys/dev/sdmmc/sdmmc_scsi.c +++ b/sys/dev/sdmmc/sdmmc_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_scsi.c,v 1.42 2018/03/30 07:18:39 jmatthew Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.43 2020/01/25 21:48:43 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler @@ -556,8 +556,6 @@ sdmmc_scsi_minphys(struct buf *bp, struct scsi_link *sl) if (sc->sc_max_xfer != 0 && bp->b_bcount > sf->csd.sector_size * sc->sc_max_xfer) bp->b_bcount = sf->csd.sector_size * sc->sc_max_xfer; - - minphys(bp); } #ifdef HIBERNATE -- cgit v1.2.3