提交 66a2af38 编写于 作者: A Artem Bityutskiy

UBI: rename ubi_scan_destroy_ai

The old name is not logical anymore - rename it to 'ubi_destroy_ai()'.
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 c87fbd7d
...@@ -608,7 +608,7 @@ static int attach_by_scanning(struct ubi_device *ubi) ...@@ -608,7 +608,7 @@ static int attach_by_scanning(struct ubi_device *ubi)
if (err) if (err)
goto out_wl; goto out_wl;
ubi_scan_destroy_ai(ai); ubi_destroy_ai(ai);
return 0; return 0;
out_wl: out_wl:
...@@ -617,7 +617,7 @@ static int attach_by_scanning(struct ubi_device *ubi) ...@@ -617,7 +617,7 @@ static int attach_by_scanning(struct ubi_device *ubi)
free_internal_volumes(ubi); free_internal_volumes(ubi);
vfree(ubi->vtbl); vfree(ubi->vtbl);
out_ai: out_ai:
ubi_scan_destroy_ai(ai); ubi_destroy_ai(ai);
return err; return err;
} }
......
...@@ -1203,7 +1203,7 @@ struct ubi_attach_info *ubi_scan(struct ubi_device *ubi) ...@@ -1203,7 +1203,7 @@ struct ubi_attach_info *ubi_scan(struct ubi_device *ubi)
out_ech: out_ech:
kfree(ech); kfree(ech);
out_ai: out_ai:
ubi_scan_destroy_ai(ai); ubi_destroy_ai(ai);
return ERR_PTR(err); return ERR_PTR(err);
} }
...@@ -1242,10 +1242,10 @@ static void destroy_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av) ...@@ -1242,10 +1242,10 @@ static void destroy_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av)
} }
/** /**
* ubi_scan_destroy_ai - destroy attaching information. * ubi_destroy_ai - destroy attaching information.
* @ai: attaching information * @ai: attaching information
*/ */
void ubi_scan_destroy_ai(struct ubi_attach_info *ai) void ubi_destroy_ai(struct ubi_attach_info *ai)
{ {
struct ubi_ainf_peb *aeb, *aeb_tmp; struct ubi_ainf_peb *aeb, *aeb_tmp;
struct ubi_ainf_volume *av; struct ubi_ainf_volume *av;
......
...@@ -165,6 +165,6 @@ void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); ...@@ -165,6 +165,6 @@ void ubi_remove_av(struct ubi_attach_info *ai, struct ubi_ainf_volume *av);
struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi, struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi,
struct ubi_attach_info *ai); struct ubi_attach_info *ai);
struct ubi_attach_info *ubi_scan(struct ubi_device *ubi); struct ubi_attach_info *ubi_scan(struct ubi_device *ubi);
void ubi_scan_destroy_ai(struct ubi_attach_info *ai); void ubi_destroy_ai(struct ubi_attach_info *ai);
#endif /* !__UBI_SCAN_H__ */ #endif /* !__UBI_SCAN_H__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册