disp: msm: dp: Fix incorrect NULL pointer check
Fix a typo where the correct pointer was not being checked for NULL. CRs-Fixed: 2511681 Change-Id: I1dde2914a7fca1f585fc7f51d8a8579fd9db2558 Signed-off-by: Fuad Hossain <fhossain@codeaurora.org>
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
8babba1d11
当前提交
0fb408a362
@@ -377,7 +377,7 @@ static struct dp_audio_private *dp_audio_get_data(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
dp_audio = ext_data->intf_data;
|
||||
if (!ext_data) {
|
||||
if (!dp_audio) {
|
||||
DP_ERR("invalid intf data\n");
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
@@ -424,6 +424,11 @@ static int dp_audio_get_edid_blk(struct platform_device *pdev,
|
||||
struct dp_audio_private *audio;
|
||||
struct sde_edid_ctrl *edid;
|
||||
|
||||
if (!blk) {
|
||||
DP_ERR("invalid input\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
audio = dp_audio_get_data(pdev);
|
||||
if (IS_ERR(audio)) {
|
||||
rc = PTR_ERR(audio);
|
||||
|
在新工单中引用
屏蔽一个用户