coccicnelle: Ignore return of memset
The return of memset is never checked. This patch explicitly ignore the return to avoid MISRA-C violations. The only directory excluded directory was ext/* since it contains only imported code. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
5884c7f54b
commit
da49f2e440
220 changed files with 577 additions and 550 deletions
|
@ -126,7 +126,7 @@ static int dht_sample_fetch(struct device *dev, enum sensor_channel chan)
|
|||
|
||||
/* store bits in buf */
|
||||
j = 0;
|
||||
memset(buf, 0, sizeof(buf));
|
||||
(void)memset(buf, 0, sizeof(buf));
|
||||
for (i = 0; i < DHT_DATA_BITS_NUM; i++) {
|
||||
if (signal_duration[i] >= avg_duration) {
|
||||
buf[j] = (buf[j] << 1) | 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue