Skip to content
Permalink
Browse files

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>
  • Loading branch information...
tbursztyka authored and nashif committed Jun 4, 2019
1 parent ef26b7a commit 7245e433a1146dd62ffcddb5590fc43fdb711b5d
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/watchdog/wdt_sam0.c
@@ -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);
}

0 comments on commit 7245e43

Please sign in to comment.
You can’t perform that action at this time.