Flexelint: Avoid side effect in initializer

parent 8134e93b
......@@ -5152,6 +5152,7 @@ fellow_cache_obj_delete(struct fellow_cache *fc,
/* one additional region for the object itself */
struct buddy_off_extent region[FCO_MAX_REGIONS + 1] = {{0}};
struct buddy_returns *rets;
struct buddy *dskbuddy;
struct stvfe_tune *tune;
enum fcol_state logstate;
fellow_disk_block fdba;
......@@ -5162,7 +5163,8 @@ fellow_cache_obj_delete(struct fellow_cache *fc,
fdo = FCO_FDO(fco);
CHECK_OBJ_NOTNULL(fdo, FELLOW_DISK_OBJ_MAGIC);
rets = BUDDY_RETURNS_STK(fellow_dskbuddy(fc->ffd), BUDDY_RETURNS_MAX);
dskbuddy = fellow_dskbuddy(fc->ffd);
rets = BUDDY_RETURNS_STK(dskbuddy, BUDDY_RETURNS_MAX);
struct fellow_lru_chgbatch lcb[1] =
FELLOW_LRU_CHGBATCH_INIT(lcb, fco, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment