drivers/sensors/max31855.c: Appease nxstyle

This commit is contained in:
YAMAMOTO Takashi 2020-11-28 09:58:06 +09:00 committed by Xiang Xiao
parent a4d37f7883
commit 6a9a3d05d8
1 changed files with 4 additions and 2 deletions

View File

@ -195,7 +195,8 @@ static ssize_t max31855_read(FAR struct file *filep, FAR char *buffer,
if (buflen != 2) if (buflen != 2)
{ {
snerr("ERROR: You can't read something other than 16 bits (2 bytes)\n"); snerr("ERROR: You can't read something other than 16 bits "
"(2 bytes)\n");
return -EINVAL; return -EINVAL;
} }
@ -320,7 +321,8 @@ int max31855_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
/* Initialize the MAX31855 device structure */ /* Initialize the MAX31855 device structure */
priv = (FAR struct max31855_dev_s *)kmm_malloc(sizeof(struct max31855_dev_s)); priv = (FAR struct max31855_dev_s *)
kmm_malloc(sizeof(struct max31855_dev_s));
if (priv == NULL) if (priv == NULL)
{ {
snerr("ERROR: Failed to allocate instance\n"); snerr("ERROR: Failed to allocate instance\n");