Re: [PATCH 1/2] mmc: Add helper function to check if a card is removable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 28, 2010 at 03:13:09PM +0100, Ben Hutchings wrote:
> On Sat, 2010-08-28 at 14:53 +0100, Matt Fleming wrote:
> [...]
> > --- a/include/linux/mmc/host.h
> > +++ b/include/linux/mmc/host.h
> > @@ -272,5 +272,12 @@ static inline void mmc_set_disable_delay(struct mmc_host *host,
> >  	host->disable_delay = disable_delay;
> >  }
> >  
> > +extern int mmc_assume_removable;
> 
> This variable is already declared in drivers/mmc/core/core.h.  Either
> remove the declaration from there or define the following function there
> instead of here.

Sure, I'll remove the declaration from drivers/mmc/core/core.h.

> > +static inline int mmc_card_is_removable(struct mmc_host *host)
> > +{
> > +	return (!(host->caps & MMC_CAP_NONREMOVABLE) || mmc_assume_removable);
> > +}
> > +
> 
> That '||' should be an '&&'.

Oops, yes, it should be.

Thanks for the review.
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux