summaryrefslogtreecommitdiff
path: root/Documentation/gpu/intel-display/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2026-05-14 00:01:30 +0200
committerVinod Koul <vkoul@kernel.org>2026-05-14 21:02:21 +0530
commit05c72fbff4ac18e9bbb0e4b3884dad1f833807f4 (patch)
tree9e020606267eb4a7f8928bd6bba4c39bbe9d8893 /Documentation/gpu/intel-display/git@git.tavy.me:linux.git
parent79a5274fb39904f8a60bdd7bf7753ee1ba700210 (diff)
phy: phy-can-transceiver: Decouple assignment and definition in probe
The code like int foo = X; ... if (bar) foo = Y; is prone to subtle mistakes and hence harder to maintain as the foo value may be changed inadvertently while code in '...' grown in lines. On top it's harder to navigate to understand the possible values of foo when branch is not taken (requires to look somewhere else in the code, far from the piece at hand). Besides that in case of taken branch the foo will be rewritten, which is not a problem per se, just an unneeded operation. Decouple assignment and definition to use if-else to address the inconveniences described above. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260513220336.369628-6-andriy.shevchenko@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/gpu/intel-display/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions