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
|
@ -204,7 +204,7 @@ static int wdt_esp32_init(struct device *dev)
|
|||
{
|
||||
struct wdt_esp32_data *data = dev->driver_data;
|
||||
|
||||
memset(&data->config, 0, sizeof(data->config));
|
||||
(void)memset(&data->config, 0, sizeof(data->config));
|
||||
|
||||
#ifdef CONFIG_WDT_DISABLE_AT_BOOT
|
||||
wdt_esp32_disable(dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue