diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/objtool/check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 90226791df6b..7325d89ccad9 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c | |||
| @@ -1959,7 +1959,8 @@ static int validate_branch(struct objtool_file *file, struct instruction *first, | |||
| 1959 | return 1; | 1959 | return 1; |
| 1960 | } | 1960 | } |
| 1961 | 1961 | ||
| 1962 | func = insn->func ? insn->func->pfunc : NULL; | 1962 | if (insn->func) |
| 1963 | func = insn->func->pfunc; | ||
| 1963 | 1964 | ||
| 1964 | if (func && insn->ignore) { | 1965 | if (func && insn->ignore) { |
| 1965 | WARN_FUNC("BUG: why am I validating an ignored function?", | 1966 | WARN_FUNC("BUG: why am I validating an ignored function?", |
