]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/relay.c: drop unneeded initialization
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 16 Oct 2020 03:13:25 +0000 (20:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:22 +0000 (11:11 -0700)
commitc3a5f14d593150e8d3a83f6e358d4b0b8a9bdb1e
treea3ffd2f2f19223def0797b6c9e1286116a59b4b9
parentca52c2ccae12473bb7f876c88277803e393f52d3
kernel/relay.c: drop unneeded initialization

The variable 'consumed' is initialized with the consumed count but
immediately after that the consumed count is updated and assigned to
'consumed' again thus overwriting the previous value.  So, drop the
unneeded initialization.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20201005205727.1147-1-sudipm.mukherjee@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/relay.c