
1 May
2014
1 May
'14
10 p.m.
On 04/30/2014 03:13 PM, Stephen Warren wrote:
From: Stephen Warren swarren@nvidia.com
There's no reason to believe that an MMC device will incorrectly report its capacity. Remove error checking of this value from ums_disk_init() to simplify it.
Hmm. I guess this check might trigger if you tried to export an SD card slot over UMS, yet there was no SD card present. Still, patch 6/8 in this series resolves this, since at least for MMC devices, get_device() calls mmc_init() internally, and hence returns an error in this case. This is more direct that checking the device size.