浏览代码

Merge pull request #1818 from uestczyh222/CLA

[Components][Drivers][SPI]fix "Value stored to 'result' is never read"
Bernard Xiong 6 年之前
父节点
当前提交
d41212fd20
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      components/drivers/spi/spi_core.c

+ 0 - 1
components/drivers/spi/spi_core.c

@@ -360,7 +360,6 @@ struct rt_spi_message *rt_spi_transfer_message(struct rt_spi_device  *device,
         {
             /* configure SPI bus failed */
             rt_set_errno(-RT_EIO);
-            result = 0;
             goto __exit;
         }
     }