Re: [PATCH 5/5] uio: Implement hotunplug support, using libunload

From: Hans J. Koch
Date: Mon Oct 04 2010 - 06:46:11 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/