samples: lcd_hd44780: return if binding fails

Coverity-ID: 151980
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-05-17 20:31:38 -04:00 committed by Kumar Gala
commit 51f9318a32

View file

@ -530,6 +530,7 @@ void main(void)
gpio_dev = device_get_binding(GPIO_DRV_NAME);
if (!gpio_dev) {
printk("Cannot find %s!\n", GPIO_DRV_NAME);
return;
}
/* Setup GPIO output */