mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 10:06:08 +07:00
drm/exynos/ipp: remove useless registration checks
Argument checks are redundant, clients always check ippdrv before calling these functions. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
fb5ee01cfd
commit
5ece5a1da1
@ -129,9 +129,6 @@ void exynos_platform_device_ipp_unregister(void)
|
||||
|
||||
int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv)
|
||||
{
|
||||
if (!ippdrv)
|
||||
return -EINVAL;
|
||||
|
||||
mutex_lock(&exynos_drm_ippdrv_lock);
|
||||
list_add_tail(&ippdrv->drv_list, &exynos_drm_ippdrv_list);
|
||||
mutex_unlock(&exynos_drm_ippdrv_lock);
|
||||
@ -141,9 +138,6 @@ int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv)
|
||||
|
||||
int exynos_drm_ippdrv_unregister(struct exynos_drm_ippdrv *ippdrv)
|
||||
{
|
||||
if (!ippdrv)
|
||||
return -EINVAL;
|
||||
|
||||
mutex_lock(&exynos_drm_ippdrv_lock);
|
||||
list_del(&ippdrv->drv_list);
|
||||
mutex_unlock(&exynos_drm_ippdrv_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user