Skip to content

Commit

Permalink
drivers/wdt: Fixing tiny style issues in sam0 driver
Browse files Browse the repository at this point in the history
- 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
Tomasz Bursztyka authored and nashif committed Jun 17, 2019
1 parent ef26b7a commit 7245e43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/watchdog/wdt_sam0.c
Expand Up @@ -52,6 +52,7 @@ static void wdt_sam0_isr(struct device *dev)
struct wdt_sam0_dev_data *data = dev->driver_data; struct wdt_sam0_dev_data *data = dev->driver_data;


WDT_REGS->INTFLAG.reg = WDT_INTFLAG_EW; WDT_REGS->INTFLAG.reg = WDT_INTFLAG_EW;

if (data->cb != NULL) { if (data->cb != NULL) {
data->cb(dev, 0); data->cb(dev, 0);
} }
Expand Down

0 comments on commit 7245e43

Please sign in to comment.