[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101004104739.GA9961@silverbox.local>
Date: Mon, 4 Oct 2010 12:47:39 +0200
From: "Hans J. Koch" <hjk@...utronix.de>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
Cc: Greg KH <greg@...ah.com>, Greg KH <gregkh@...e.de>,
"Hans J. Koch" <hjk@...utronix.de>, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH 5/5] uio: Implement hotunplug support, using libunload
On Sun, Sep 26, 2010 at 03:49:03PM -0700, Eric W. Biederman wrote:
Checkpatch reports one error, see below.
Thanks,
Hans
>
> + /*
> + * Take the users lock before opening the file to ensure the
> + * file is not unregistered while it is being opened.
> + */
> + ret = -EIO;
> + if (!unload_trylock(&idev->unload))
> + goto err_out;
> +
> + ret = 0;
> + if (idev->info->open)
> ret = idev->info->open(idev->info, inode);
> - if (ret)
> - goto err_infoopen;
> +
The above line adds trailing whitespace.
> + /*
> + * Add to the listener list only if the open succeeds.
> + * This ensures that uio_unregister_device won't call
> + * release unless open has succeeded.
> + */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists