aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-imx8mm.c
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2020-12-19 16:18:40 +0800
committerDan Williams <dan.j.williams@intel.com>2020-12-24 10:06:57 -0800
commitff8da37d3d8d438ded5a4841d979899269b94d0d (patch)
tree2befe2f7e2644a83c0b8a8721e909e282f60efdd /drivers/clk/imx/clk-imx8mm.c
parentdevice-dax: Fix range release (diff)
downloadlinux-dev-ff8da37d3d8d438ded5a4841d979899269b94d0d.tar.xz
linux-dev-ff8da37d3d8d438ded5a4841d979899269b94d0d.zip
device-dax: Avoid an unnecessary check in alloc_dev_dax_range()
Swap the calling sequence of krealloc() and __request_region(), call the latter first. In this way, the value of dev_dax->nr_range does not need to be considered when __request_region() failed. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20201219081840.1149-2-thunder.leizhen@huawei.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/clk/imx/clk-imx8mm.c')
0 files changed, 0 insertions, 0 deletions