1.优化设备命令。

This commit is contained in:
MacRsh
2023-12-20 16:04:33 +08:00
parent 36d2737548
commit b1b1fb3602
10 changed files with 28 additions and 93 deletions

View File

@@ -186,7 +186,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
}
case MR_CTL_SERIAL_GET_RD_DATASZ:
{
if (args!= MR_NULL)
if (args != MR_NULL)
{
size_t *datasz = (size_t *)args;
@@ -197,7 +197,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
}
case MR_CTL_SERIAL_GET_WR_DATASZ:
{
if (args!= MR_NULL)
if (args != MR_NULL)
{
size_t *datasz = (size_t *)args;