提交 fe34761d 编写于 作者: I Ioana Ciornei 提交者: Greg Kroah-Hartman

bus: fsl-mc: simplify DPRC version check

Because the minimum supported DPRC version is 6.0, there is no need to
check for incompatible 6.x versions lower to the minimum one.  Just
remove the second half of the check to simplify the logic.
Signed-off-by: NIoana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20201123164839.1668409-1-ciorneiioana@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 3d70fb03
...@@ -670,9 +670,7 @@ int dprc_setup(struct fsl_mc_device *mc_dev) ...@@ -670,9 +670,7 @@ int dprc_setup(struct fsl_mc_device *mc_dev)
goto error_cleanup_open; goto error_cleanup_open;
} }
if (major_ver < DPRC_MIN_VER_MAJOR || if (major_ver < DPRC_MIN_VER_MAJOR) {
(major_ver == DPRC_MIN_VER_MAJOR &&
minor_ver < DPRC_MIN_VER_MINOR)) {
dev_err(&mc_dev->dev, dev_err(&mc_dev->dev,
"ERROR: DPRC version %d.%d not supported\n", "ERROR: DPRC version %d.%d not supported\n",
major_ver, minor_ver); major_ver, minor_ver);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册