diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-02-13 03:58:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 01:13:29 -0500 |
commit | 951d3d6fcd72f10b50e2a1182fb533dc2c9da0e5 (patch) | |
tree | a3beef3dc6a39eb2151ea86f9c47bf229a7248e6 /lib/test_objagg.c | |
parent | 4446eb8dbeb223031fb652dd1e58e59d3d4b4aba (diff) |
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 <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_objagg.c')
-rw-r--r-- | lib/test_objagg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_objagg.c b/lib/test_objagg.c index 3744573b6365..3dd45777b13c 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) | |||
952 | } | 952 | } |
953 | 953 | ||
954 | objagg2 = objagg_create(&delta_ops, hints, &world2); | 954 | objagg2 = objagg_create(&delta_ops, hints, &world2); |
955 | if (IS_ERR(objagg)) | 955 | if (IS_ERR(objagg2)) |
956 | return PTR_ERR(objagg); | 956 | return PTR_ERR(objagg2); |
957 | 957 | ||
958 | for (i = 0; i < hints_case->key_ids_count; i++) { | 958 | for (i = 0; i < hints_case->key_ids_count; i++) { |
959 | objagg_obj = world_obj_get(&world2, objagg2, | 959 | objagg_obj = world_obj_get(&world2, objagg2, |