mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 14:14:01 +08:00
drm/msm/hdmi: Delete an unnecessary check before the function call "kfree"
The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
5745d21f9a
commit
851dd75d64
@ -1430,7 +1430,7 @@ struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi)
|
||||
|
||||
void msm_hdmi_hdcp_destroy(struct hdmi *hdmi)
|
||||
{
|
||||
if (hdmi && hdmi->hdcp_ctrl) {
|
||||
if (hdmi) {
|
||||
kfree(hdmi->hdcp_ctrl);
|
||||
hdmi->hdcp_ctrl = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user