aboutsummaryrefslogtreecommitdiff
path: root/drivers/hwmon/lm93.c
diff options
context:
space:
mode:
authorZhen Lei2020-12-19 16:18:40 +0800
committerDan Williams2020-12-24 10:06:57 -0800
commitff8da37d3d8d438ded5a4841d979899269b94d0d (patch)
tree2befe2f7e2644a83c0b8a8721e909e282f60efdd /drivers/hwmon/lm93.c
parent6268d7da4d192af339f4d688942b9ccb45a65e04 (diff)
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/hwmon/lm93.c')
0 files changed, 0 insertions, 0 deletions