aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2020-11-23 19:00:34 +0000
committerRafael J. Wysocki <[email protected]>2020-11-23 19:00:34 +0000
commit902675fa87e3a3d433481a2df6e50c10da5e20c2 (patch)
treef461a671dd459e1ac35a52ef9038cec358d3709c /fs/proc/array.c
parentACPI: EC: Rename acpi_ec_is_gpe_raised() (diff)
downloadkernel-902675fa87e3a3d433481a2df6e50c10da5e20c2.tar.gz
kernel-902675fa87e3a3d433481a2df6e50c10da5e20c2.zip
ACPI: EC: Simplify error handling in advance_transaction()
Notice that the value of t in advance_transaction() does not change after its initialization and: - Initialize t upfront (and rearrange the definitions of local variables while at it). - Check it against NULL in a block executed when it is NULL. - Skip error handling for t == NULL, because a valid pointer value of t is required for the error handling. - Drop the (now redundant) check of t against NULL from the error handling block and reduce the indentation level in there. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions