arch/arm/src/sam34: Fix some compile warnings that I introduced with a possibly overzealous recent change.

This commit is contained in:
Gregory Nutt
2017-12-17 17:43:20 -06:00
parent 8057af6724
commit 91f48701ae
3 changed files with 70 additions and 2 deletions
+6
View File
@@ -378,6 +378,12 @@ static ssize_t ft5x06_sample(FAR struct ft5x06_dev_s *priv, FAR char *buffer,
ntouches = maxtouches;
}
if (ntouches < 1)
{
priv->valid = false;
return 0; /* No touches read. */
}
/* User data buffer points (sink) */
sample = (FAR struct touch_sample_s *)buffer;