Skip to content

Commit 94a27df

Browse files
hoshinolinamarcan
authored andcommitted
drm/apple: Fix bad error return
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 71dd6cd commit 94a27df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/apple/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static int parse_dimension(struct dcp_parse_ctx *handle, struct dimension *dim)
229229
char *key = parse_string(it.handle);
230230

231231
if (IS_ERR(key))
232-
ret = PTR_ERR(handle);
232+
ret = PTR_ERR(key);
233233
else if (!strcmp(key, "Active"))
234234
ret = parse_int(it.handle, &dim->active);
235235
else if (!strcmp(key, "Total"))

0 commit comments

Comments
 (0)