diff options
| author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2025-08-11 15:35:04 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-13 16:27:42 -0700 |
| commit | 6896c2449a1858acb643014894d01b3a1223d4e5 (patch) | |
| tree | 2c75beae0ba34f7a19fef595e3e62fdd5e4fb29a /rust/helpers/platform.c | |
| parent | fdbe93b7f0f86c943351ceab26c8fad548869f91 (diff) | |
net: stmmac: Check stmmac_hw_setup() in stmmac_resume()
stmmac_hw_setup() may return 0 on success and an appropriate negative
integer as defined in errno.h file on failure, just check it and then
return early if failed in stmmac_resume().
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://patch.msgid.link/20250811073506.27513-2-yangtiezhu@loongson.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
