Commit 69117994 authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab

[media] variable name is never null, so remove null check

The variable name is always assigned to a literal string in the
proceeding switch statement, so it is never null and hence the
null check is redundant. Remove null the check.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
parent 06c24f67
...@@ -116,7 +116,6 @@ static ssize_t show_type(struct device *class_dev, ...@@ -116,7 +116,6 @@ static ssize_t show_type(struct device *class_dev,
} }
pvr2_sysfs_trace("pvr2_sysfs(%p) show_type(cid=%d) is %s", pvr2_sysfs_trace("pvr2_sysfs(%p) show_type(cid=%d) is %s",
cip->chptr, cip->ctl_id, name); cip->chptr, cip->ctl_id, name);
if (!name) return -EINVAL;
return scnprintf(buf, PAGE_SIZE, "%s\n", name); return scnprintf(buf, PAGE_SIZE, "%s\n", name);
} }
......
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