mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20201123164839.1668409-1-ciorneiioana@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3d70fb0371
commit
fe34761d9f
1 changed files with 1 additions and 3 deletions
|
@ -670,9 +670,7 @@ int dprc_setup(struct fsl_mc_device *mc_dev)
|
|||
goto error_cleanup_open;
|
||||
}
|
||||
|
||||
if (major_ver < DPRC_MIN_VER_MAJOR ||
|
||||
(major_ver == DPRC_MIN_VER_MAJOR &&
|
||||
minor_ver < DPRC_MIN_VER_MINOR)) {
|
||||
if (major_ver < DPRC_MIN_VER_MAJOR) {
|
||||
dev_err(&mc_dev->dev,
|
||||
"ERROR: DPRC version %d.%d not supported\n",
|
||||
major_ver, minor_ver);
|
||||
|
|
Loading…
Reference in a new issue