aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChris Packham <chris.packham@alliedtelesis.co.nz>2021-04-13 17:09:54 +1200
committerWolfram Sang <wsa@kernel.org>2021-04-13 14:23:40 +0200
commit270282bdf4e5a2484e1244db67e3743cefca6d8f (patch)
tree7e78befbd7d41591b42262fe56a397ce105d0040 /tools/perf/scripts/python/export-to-postgresql.py
parenti2c: mpc: drop release for resource allocated with devm_* (diff)
downloadlinux-dev-270282bdf4e5a2484e1244db67e3743cefca6d8f.tar.xz
linux-dev-270282bdf4e5a2484e1244db67e3743cefca6d8f.zip
i2c: mpc: Remove redundant NULL check
In mpc_i2c_get_fdr_8xxx div is assigned as we iterate through the mpc_i2c_dividers_8xxx array. By the time we exit the loop div will either have the value that matches the requested speed or be pointing at the last entry in mpc_i2c_dividers_8xxx. Checking for div being NULL after the loop is redundant so remove the check. Reported-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions