sched/tune: Remove redundant checks for NULL css
The check for NULL css is redundant as upper layers are already making sure that css cannot be NULL. Remove this check. It helps to silence static analysis errors as well. Change-Id: I64585ff8cceb307904e20ff788e52eb05c000e1f Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
This commit is contained in:
parent
c5cfd3c491
commit
2a5b04bf9b
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ struct schedtune {
|
|||
|
||||
static inline struct schedtune *css_st(struct cgroup_subsys_state *css)
|
||||
{
|
||||
return css ? container_of(css, struct schedtune, css) : NULL;
|
||||
return container_of(css, struct schedtune, css);
|
||||
}
|
||||
|
||||
static inline struct schedtune *task_schedtune(struct task_struct *tsk)
|
||||
|
|
Loading…
Add table
Reference in a new issue