diff --git a/sys/arm/broadcom/bcm2835/bcm2835_fb.c b/sys/arm/broadcom/bcm2835/bcm2835_fb.c index 88156ed084c4..3270da1a1a4c 100644 --- a/sys/arm/broadcom/bcm2835/bcm2835_fb.c +++ b/sys/arm/broadcom/bcm2835/bcm2835_fb.c @@ -240,7 +240,6 @@ bcm_fb_init(void *arg) } else { device_printf(sc->dev, "Failed to set framebuffer info\n"); - return; } config_intrhook_disestablish(&sc->init_hook); diff --git a/sys/arm/broadcom/bcm2835/bcm2835_fbd.c b/sys/arm/broadcom/bcm2835/bcm2835_fbd.c index ed625bc0f8f8..b3b0dd3686d8 100644 --- a/sys/arm/broadcom/bcm2835/bcm2835_fbd.c +++ b/sys/arm/broadcom/bcm2835/bcm2835_fbd.c @@ -186,17 +186,12 @@ bcm_fb_init(void *arg) fbd = device_add_child(sc->dev, "fbd", device_get_unit(sc->dev)); - if (fbd == NULL) { + if (fbd == NULL) device_printf(sc->dev, "Failed to add fbd child\n"); - return; - } - if (device_probe_and_attach(fbd) != 0) { + else if (device_probe_and_attach(fbd) != 0) device_printf(sc->dev, "Failed to attach fbd device\n"); - return; - } } else { device_printf(sc->dev, "Failed to set framebuffer info\n"); - return; } config_intrhook_disestablish(&sc->init_hook);