mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
style: fix spelling in code comments and strings
This commit is contained in:
@@ -719,7 +719,7 @@ static ssize_t cdcmbim_write(FAR struct file *filep, FAR const char *buffer,
|
||||
if (ret < 0)
|
||||
{
|
||||
iob_free_chain(iob);
|
||||
uerr("CDCMBIM copyin failed: %d\n", ret);
|
||||
uerr("CDCMBIM copying failed: %d\n", ret);
|
||||
goto errout;
|
||||
}
|
||||
|
||||
@@ -1786,7 +1786,7 @@ static int cdcncm_setinterface(FAR struct cdcncm_driver_s *self,
|
||||
}
|
||||
else
|
||||
{
|
||||
uerr("invailid interface %d\n", interface);
|
||||
uerr("invalid interface %d\n", interface);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -2791,7 +2791,7 @@ static int cdcncm_setup(FAR struct usbdevclass_driver_s *driver,
|
||||
if (ret < 0)
|
||||
{
|
||||
iob_free_chain(iob);
|
||||
uerr("CDCMBIM copyin failed: %d\n", ret);
|
||||
uerr("CDCMBIM copying failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -1785,7 +1785,7 @@ void usbmsc_uninitialize(FAR void *handle)
|
||||
|
||||
priv = &alloc->dev;
|
||||
|
||||
/* If the thread hasn't already exitted, tell it to exit now */
|
||||
/* If the thread hasn't already exited, tell it to exit now */
|
||||
|
||||
if (priv->thstate != USBMSC_STATE_NOTSTARTED)
|
||||
{
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
#define USBMSC_STATE_CMDWRITE (5) /* Processing a SCSI write command */
|
||||
#define USBMSC_STATE_CMDFINISH (6) /* Finish command processing */
|
||||
#define USBMSC_STATE_CMDSTATUS (7) /* Processing the final status of the command */
|
||||
#define USBMSC_STATE_TERMINATED (8) /* Thread has exitted */
|
||||
#define USBMSC_STATE_TERMINATED (8) /* Thread has exited */
|
||||
|
||||
/* Event communicated to worker thread */
|
||||
|
||||
|
||||
@@ -372,7 +372,7 @@ static int usbmsc_scsi_wait(FAR struct usbmsc_dev_s *priv)
|
||||
|
||||
/* A flag is used to prevent driving up the semaphore count. This function
|
||||
* is called (primarily) from the SCSI work thread so we must disable
|
||||
* interrupts momentarily to assure that test of the flag and the wait fo
|
||||
* interrupts momentarily to assure that test of the flag and the wait for
|
||||
* the semaphore count are atomic. Interrupts will, of course, be re-
|
||||
* enabled while we wait for the event.
|
||||
*/
|
||||
@@ -2037,7 +2037,7 @@ static int usbmsc_cmdparsestate(FAR struct usbmsc_dev_s *priv)
|
||||
* case SCSI_CMD_WRITEANDVERIFY: 0x2e Optional
|
||||
*/
|
||||
|
||||
case SCSI_CMD_VERIFY10: /* 0x2f Opt, excpt Windows */
|
||||
case SCSI_CMD_VERIFY10: /* 0x2f Opt, except Windows */
|
||||
ret = usbmsc_cmdverify10(priv);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user