mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
gpiolib: cdev: remove pointless decrement of i
Remove pointless decrement of variable, and associated comment. While i is used subsequently, it is re-initialized so this decrement serves no purpose. Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
parent
52b7b596dd
commit
0cdc85a371
@ -331,8 +331,6 @@ static int linehandle_create(struct gpio_device *gdev, void __user *ip)
|
||||
dev_dbg(&gdev->dev, "registered chardev handle for line %d\n",
|
||||
offset);
|
||||
}
|
||||
/* Let i point at the last handle */
|
||||
i--;
|
||||
lh->num_descs = handlereq.lines;
|
||||
|
||||
fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC);
|
||||
|
Loading…
Reference in New Issue
Block a user