Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d408e0b authored by Maninder Singh's avatar Maninder Singh Committed by Greg Kroah-Hartman
Browse files

Staging: xgifb: Fix NULL pointer comparison warning



Replace direct comparisons to NULL i.e.
'x == NULL' with '!x'.
This problem was detected by checkpatch.

Signed-off-by: default avatarManinder Singh <maninder.s2@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 31b15fe6
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -518,7 +518,7 @@ static void XGIfb_search_crt2type(const char *name)
{
{
	int i = 0;
	int i = 0;


	if (name == NULL)
	if (!name)
		return;
		return;


	while (XGI_crt2type[i].type_no != -1) {
	while (XGI_crt2type[i].type_no != -1) {
@@ -589,7 +589,7 @@ static void XGIfb_search_tvstd(const char *name)
{
{
	int i = 0;
	int i = 0;


	if (name == NULL)
	if (!name)
		return;
		return;


	while (XGI_tvtype[i].type_no != -1) {
	while (XGI_tvtype[i].type_no != -1) {