sbi: tlb: Simplify to tlb_process_count/tlb_process function
authorXiang W <wxjstz@126.com>
Tue, 11 Apr 2023 04:56:20 +0000 (12:56 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Apr 2023 08:19:57 +0000 (13:49 +0530)
commit80078ab088c34aafce52f0c0d4d1e367da146b9c
treed311033663e09d019759874ad22681954c477762
parent24dde46b8df0830174580919d49c21160d7d9fce
sbi: tlb: Simplify to tlb_process_count/tlb_process function

tlb_process_count is only used when count=1, so refactor to
tlb_process_once and add the return value to be reused in
tlb_process

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Tested-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_tlb.c