diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c index 80dc4a9d9a0e..8dffd8a7e762 100644 --- a/drivers/staging/greybus/light.c +++ b/drivers/staging/greybus/light.c @@ -483,7 +483,7 @@ static int gb_blink_set(struct led_classdev *cdev, unsigned long *delay_on, if (ret < 0) goto out_pm_put; - if (delay_on) + if (*delay_on) channel->active = true; else channel->active = false;