From: Dan Carpenter Date: Wed, 13 Feb 2019 08:58:20 +0000 (+0300) Subject: test_objagg: Test the correct variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=951d3d6fcd72f10b50e2a1182fb533dc2c9da0e5;p=linux.git 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: 9069a3817d82 ("lib: objagg: implement optimization hints assembly and use hints for object creation") Signed-off-by: Dan Carpenter Acked-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/lib/test_objagg.c b/lib/test_objagg.c index 3744573b63655..3dd45777b13c9 100644 --- a/lib/test_objagg.c +++ b/lib/test_objagg.c @@ -952,8 +952,8 @@ static int test_hints_case(const struct hints_case *hints_case) } objagg2 = objagg_create(&delta_ops, hints, &world2); - if (IS_ERR(objagg)) - return PTR_ERR(objagg); + if (IS_ERR(objagg2)) + return PTR_ERR(objagg2); for (i = 0; i < hints_case->key_ids_count; i++) { objagg_obj = world_obj_get(&world2, objagg2,