Thread (4 messages) 4 messages, 2 authors, 2020-01-15

Re: [PATCH 1/1] HID: hiddev: remove a duplicated check

From: Jiri Kosina <jikos@kernel.org>
Date: 2020-01-14 14:19:30
Also in: linux-usb

On Tue, 14 Jan 2020, Leizhen (ThunderTown) wrote:
Does no one pay attention to this problem? Although there is no
functional problem, but it seems confusing.

        if (!list->hiddev->exist) {                 <---------
                res = -ENODEV;                                |
                goto bail_unlock;                             |
        }                                                     |
        if (!list->hiddev->open++)                            |
                if (list->hiddev->exist) {          <--------- //It's always true.
This code no longer exists after refactoring that happened in commit 
18a1b06e5b91d47.

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help