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:
Tomasz Bursztyka 2019-06-04 14:30:53 +02:00 committed by Anas Nashif
commit 7245e433a1

View file

@ -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);
}