[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190317113615.GA17880@kroah.com>
Date: Sun, 17 Mar 2019 12:36:15 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Dominik Adamski <adamski.dominik@...il.com>
Cc: devel@...verdev.osuosl.org, Alex Elder <elder@...nel.org>,
Johan Hovold <johan@...nel.org>, linux-kernel@...r.kernel.org,
greybus-dev@...ts.linaro.org
Subject: Re: [PATCH] staging: greybus: bundle.c fix comparison to NULL
On Mon, Mar 04, 2019 at 06:06:36PM +0100, Dominik Adamski wrote:
> Fix checkpatch issue:
> Comparison to NULL could be written "!bundle->state"
>
> Signed-off-by: Dominik Adamski <adamski.dominik@...il.com>
> ---
> drivers/staging/greybus/bundle.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c
> index e97b2b87ba47..3f702db9e098 100644
> --- a/drivers/staging/greybus/bundle.c
> +++ b/drivers/staging/greybus/bundle.c
> @@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
> {
> struct gb_bundle *bundle = to_gb_bundle(dev);
>
> - if (bundle->state == NULL)
> + if (!bundle->state)
> return sprintf(buf, "\n");
>
> return sprintf(buf, "%s\n", bundle->state);
This does not apply to my tree, please rebase and resend.
thanks,
greg k-h
Powered by blists - more mailing lists