svn commit: r183765 - head/sys/dev/mmc

M. Warner Losh imp at bsdimp.com
Sun Oct 12 07:16:06 UTC 2008


In message: <200810111730.m9BHU2u1023174 at svn.freebsd.org>
            Alexander Motin <mav at FreeBSD.org> writes:
: Author: mav
: Date: Sat Oct 11 17:30:02 2008
: New Revision: 183765
: URL: http://svn.freebsd.org/changeset/base/183765
: 
: Log:
:   SELECT_CARD command with zero RCA deselects all cards and so has no reply.
: 
: Modified:
:   head/sys/dev/mmc/mmc.c
: 
: Modified: head/sys/dev/mmc/mmc.c
: ==============================================================================
: --- head/sys/dev/mmc/mmc.c	Sat Oct 11 17:28:22 2008	(r183764)
: +++ head/sys/dev/mmc/mmc.c	Sat Oct 11 17:30:02 2008	(r183765)
: @@ -526,7 +526,7 @@ static int
:  mmc_select_card(struct mmc_softc *sc, uint16_t rca)
:  {
:  	return (mmc_wait_for_command(sc, MMC_SELECT_CARD, ((uint32_t)rca) << 16,
: -	    MMC_RSP_R1B | MMC_CMD_AC, NULL, CMD_RETRIES));
: +	    (rca?MMC_RSP_R1B:MMC_RSP_NONE) | MMC_CMD_AC, NULL, CMD_RETRIES));

Tertiary operators have spaces around ? and : in style(9), and the
rest of this file uses that style.

Warner


More information about the svn-src-head mailing list