staging: sm750fb: Replace NULL comparison.
authorVarsha Rao <rvarsha016@gmail.com>
Mon, 27 Feb 2017 10:12:55 +0000 (15:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:06 +0000 (09:17 +0100)
Replaced NULL comparison with pCurrentDviCtrl->pfnInit. This patch fixes
the following checkpatch issue:

CHECK: Comparison to NULL could be written "pCurrentDviCtrl->pfnInit"

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_dvi.c

index 42c753fcf3ce4f07570c12714b89f94bff65845c..171ae063f06fe34c2a3b9617c977e341c3548388 100644 (file)
@@ -45,7 +45,7 @@ int dviInit(
        dvi_ctrl_device_t *pCurrentDviCtrl;
 
        pCurrentDviCtrl = g_dcftSupportedDviController;
-       if (pCurrentDviCtrl->pfnInit != NULL) {
+       if (pCurrentDviCtrl->pfnInit) {
                return pCurrentDviCtrl->pfnInit(edgeSelect, busSelect, dualEdgeClkSelect, hsyncEnable,
                                                vsyncEnable, deskewEnable, deskewSetting, continuousSyncEnable,
                                                pllFilterEnable, pllFilterValue);