drivers/wdt: Fixing tiny style issues in sam0 driver
- Even one-liner statement if () need { } - you can coalesce assignment and condition if the later tests the earlier only. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
ef26b7ad76
commit
7245e433a1
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ static void wdt_sam0_isr(struct device *dev)
|
|||
struct wdt_sam0_dev_data *data = dev->driver_data;
|
||||
|
||||
WDT_REGS->INTFLAG.reg = WDT_INTFLAG_EW;
|
||||
|
||||
if (data->cb != NULL) {
|
||||
data->cb(dev, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue