diff options
author | Chunyan Zhang <chunyan.zhang@unisoc.com> | 2021-03-31 06:16:45 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-04-07 11:43:49 +0300 |
commit | a56af062ae7cdc9759ed61d1d3d173f28c79510a (patch) | |
tree | 8a367786f35cd900b7c53e6dddbd76f9377a2e2d /fs/btrfs/zoned.c | |
parent | 0bb868e1e3c16827c1b63589b1b0f016ba00140d (diff) | |
download | linux-a56af062ae7cdc9759ed61d1d3d173f28c79510a.tar.xz |
iommu/sprd: Fix parameter type warning
The second parameter of clk_get_optional() is "const char *", so use NULL
instead of integer 0 to fix a sparse warning like:
">> drivers/iommu/sprd-iommu.c:456:42: sparse: sparse: Using plain integer as NULL pointer"
Also this patch changes to use the resource-managed variant of
clk_get_optional(), then there's no need to add clk_put() which
is missed in the current driver.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20210331031645.1001913-1-zhang.lyra@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'fs/btrfs/zoned.c')
0 files changed, 0 insertions, 0 deletions