aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAmelie Delaunay <[email protected]>2023-06-09 11:28:04 +0200
committerLee Jones <[email protected]>2023-06-15 15:05:49 +0100
commit7c81582c0bccb4757186176f0ee12834597066ad (patch)
treef3ce6c62228003039c55fd32b4955eb27b6c9d57 /net/lapb/lapb_subr.c
parentf592cf624531286f8b52e40dcfc157a5a7fb115c (diff)
mfd: stmfx: Nullify stmfx->vdd in case of error
Nullify stmfx->vdd in case devm_regulator_get_optional() returns an error. And simplify code by returning an error only if return code is not -ENODEV, which means there is no vdd regulator and it is not an issue. Fixes: d75846ed08e6 ("mfd: stmfx: Fix dev_err_probe() call in stmfx_chip_init()") Signed-off-by: Amelie Delaunay <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions