usbhost_storage.c: Fixed Bug in usbhost_freedevno(...), worked only for 'a'.

This commit is contained in:
Johannes Schock 2020-08-09 19:12:17 +02:00 committed by patacongo
parent 02a9228c1f
commit 2a11ad520b

View file

@ -482,7 +482,7 @@ static int usbhost_allocdevno(FAR struct usbhost_state_s *priv)
static void usbhost_freedevno(FAR struct usbhost_state_s *priv)
{
int devno = 'a' - priv->sdchar;
int devno = priv->sdchar - 'a';
if (devno >= 0 && devno < 26)
{