aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorChristian Gromm <[email protected]>2020-05-27 11:06:24 +0200
committerGreg Kroah-Hartman <[email protected]>2020-05-27 12:26:12 +0200
commit1fd4fb8c62d34db0d82bbb948b4cfd006c9256fb (patch)
tree8be5f191dad76ec8e6883768c8851ddffad09002 /drivers/fpga/fpga-bridge.c
parent6405fe214229c0ac798ffe5940f53a4cfc3a641f (diff)
staging: most: usb: replace code to calculate array index
This patch removes the expression that makes use of a priori knowledge about channel numbers to calculate an array index. The expression 'peer = 1 - channel' utilizes the fact that an USB interface that operates on the asynchronous data of the Network only has two endpoints. Hence, channel being 0 or 1. The replacement is more simple and less confusing when reading the code. Signed-off-by: Christian Gromm <[email protected]> Reported-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions