Re: [PATCH v3 3/4] chardev: code cleanup for __register_chrdev_region()

2019-04-05 Thread Chengguang Xu
> Sent: Friday, April 05, 2019 at 8:32 PM > From: "Greg KH" > To: "Chengguang Xu" > Cc: dan.carpen...@oracle.com, linux-fsde...@vger.kernel.org, > v...@zeniv.linux.org.uk, linux-kernel@vger.kernel.org > Subject: Re: [PATCH v3 3/4] chardev: code cleanup fo

Re: [PATCH v3 3/4] chardev: code cleanup for __register_chrdev_region()

2019-04-05 Thread Greg KH
On Fri, Apr 05, 2019 at 07:27:10PM +0800, Chengguang Xu wrote: > It's just code cleanup, not functional change. > > Signed-off-by: Chengguang Xu > --- > v1->v2: > - Split fix and cleanup patches. > - Remove printing minor range in chrdev_show(). > > v2->v3: > - Set variable ret to '-EBUSY' befor

[PATCH v3 3/4] chardev: code cleanup for __register_chrdev_region()

2019-04-05 Thread Chengguang Xu
It's just code cleanup, not functional change. Signed-off-by: Chengguang Xu --- v1->v2: - Split fix and cleanup patches. - Remove printing minor range in chrdev_show(). v2->v3: - Set variable ret to '-EBUSY' before checking minor range overlap. fs/char_dev.c | 70 +-