summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet4linux@gmail.com>2026-01-31 20:46:15 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-02-01 14:00:19 +0100
commit9eb9c350bc553fae5d77d698192198087ca47c64 (patch)
tree890ec8399bb3ca5c9cf2a5483b13b5757afe5546 /rust/alloc/collections/git@git.tavy.me:linux.git
parent9635c586a559ba0e45b2bfbff79c937ddbaf1a62 (diff)
drivers: thermal: intel: tcc_cooling: Drop redundant local variable
Simplify the error path by directly returning PTR_ERR(tcc_cdev) instead of storing it in an intermediate variable ret which can be dropped then because it is only used for that. Also remove an uneeded empty line before the declaration of local variable err. Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com> [ rjw: Dropped unneeded changes, rewrote changelog, adjusted subject ] Link: https://patch.msgid.link/20260131151615.6230-1-sumeet4linux@gmail.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions