projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b7b59
)
gpiolib: cdev: remove pointless decrement of i
author
Kent Gibson
<warthog618@gmail.com>
Wed, 8 Jul 2020 04:15:50 +0000
(12:15 +0800)
committer
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Sun, 12 Jul 2020 08:22:00 +0000
(10:22 +0200)
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>
drivers/gpio/gpiolib-cdev.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib-cdev.c
b/drivers/gpio/gpiolib-cdev.c
index
b39e7ef
..
d50339e
100644
(file)
--- a/
drivers/gpio/gpiolib-cdev.c
+++ b/
drivers/gpio/gpiolib-cdev.c
@@
-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);