Skip to contentSkip to conversation

staging: sm750fb: Comparison to NULL fixed

PATCH New Manav Batra 1 participant 1 message Apr 29, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: sm750fb: Comparison to NULL fixed

Improved comparison to NULL and removed some blank lines.

---
 drivers/staging/sm750fb/ddk750_dvi.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/sm750fb/ddk750_dvi.c +3 -4
index a4a2550..bac432b 100644
@@ -8,7 +8,8 @@
 
 /* This global variable contains all the supported driver and its corresponding
    function API. Please set the function pointer to NULL whenever the function
-   is not supported. */
+   is not supported.
+*/
 static dvi_ctrl_device_t g_dcftSupportedDviController[] = {
 #ifdef DVI_CTRL_SII164
 	{
@@ -28,7 +29,6 @@ static dvi_ctrl_device_t g_dcftSupportedDviController[] = {
 #endif
 };
 
-
 int dviInit(
 	unsigned char edgeSelect,
 	unsigned char busSelect,
@@ -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);
@@ -55,4 +55,3 @@ int dviInit(
 
 #endif
 
-
Signature · 1 line
1.9.1