hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/release-management/issues/ID5CMS -------------------------------- Now get_pfi() call current_prefetch_mm_data twice. Remove the redundant call. Fixes: 318abedea4be ("xcall2.0: prefetch: introduce struct prefetch_mm_data") Signed-off-by: Xinyu Zheng <zhengxinyu6@huawei.com> --- drivers/staging/xcall/prefetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/xcall/prefetch.c b/drivers/staging/xcall/prefetch.c index 19370d7023d8..b4c9f507ed35 100644 --- a/drivers/staging/xcall/prefetch.c +++ b/drivers/staging/xcall/prefetch.c @@ -154,10 +154,10 @@ static inline struct prefetch_item *get_pfi(unsigned int fd) { struct prefetch_item *pfis = NULL; - if (fd >= MAX_FD || !current_prefetch_mm_data()) + pfis = (struct prefetch_item *)current_prefetch_mm_data(); + if (fd >= MAX_FD || !pfis) return NULL; - pfis = (struct prefetch_item *)current_prefetch_mm_data(); return pfis + fd; } -- 2.34.1