sensor:bmi160.c:Fix the missing items caused by resolving merge conflicts after bmi160 cherry-pick submission. This cherry-pick missing CI check did not detect it.

Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
likun17 2023-09-04 19:31:44 +08:00 committed by Xiang Xiao
parent 99d630b18d
commit b5bccbb70e
1 changed files with 2 additions and 1 deletions

View File

@ -251,7 +251,8 @@ int bmi160_register(FAR const char *devpath, FAR struct i2c_master_s *dev)
int bmi160_register(FAR const char *devpath, FAR struct spi_dev_s *dev)
#endif
{
uint8_t devid = 0;
FAR struct bmi160_dev_s *priv;
int ret;
priv = (FAR struct bmi160_dev_s *)kmm_malloc(sizeof(struct bmi160_dev_s));
if (!priv)