watchdog: wdt_nrfx: don't zero init static
Don't zero initialise the static data structure, as statics are explicitly initialised to 0 per the C standard, and checkpatch normally complains about the pattern. Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
parent
23afa2124f
commit
0010dec4f0
1 changed files with 1 additions and 4 deletions
|
|
@ -209,10 +209,7 @@ static void wdt_event_handler(const struct device *dev, nrf_wdt_event_t event_ty
|
|||
} \
|
||||
return 0; \
|
||||
} \
|
||||
static struct wdt_nrfx_data wdt_##idx##_data = { \
|
||||
.m_timeout = 0, \
|
||||
.m_allocated_channels = 0, \
|
||||
}; \
|
||||
static struct wdt_nrfx_data wdt_##idx##_data; \
|
||||
static const struct wdt_nrfx_config wdt_##idx##z_config = { \
|
||||
.wdt = NRFX_WDT_INSTANCE(idx), \
|
||||
}; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue