Commit 951d3d6f authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

test_objagg: Test the correct variable

There is a typo here.  We intended to check "objagg2" but we instead
test "objagg" which is not an error pointer.

Fixes: 9069a381 ("lib: objagg: implement optimization hints assembly and use hints for object creation")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4446eb8d
...@@ -952,8 +952,8 @@ static int test_hints_case(const struct hints_case *hints_case) ...@@ -952,8 +952,8 @@ static int test_hints_case(const struct hints_case *hints_case)
} }
objagg2 = objagg_create(&delta_ops, hints, &world2); objagg2 = objagg_create(&delta_ops, hints, &world2);
if (IS_ERR(objagg)) if (IS_ERR(objagg2))
return PTR_ERR(objagg); return PTR_ERR(objagg2);
for (i = 0; i < hints_case->key_ids_count; i++) { for (i = 0; i < hints_case->key_ids_count; i++) {
objagg_obj = world_obj_get(&world2, objagg2, objagg_obj = world_obj_get(&world2, objagg2,
......
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