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

Commit d8d34a81 authored by Tapasweni Pathak's avatar Tapasweni Pathak Committed by Greg Kroah-Hartman
Browse files

staging: dgap: Remove useless cast on NULL



Cast on NULL to a pointer type is not required. This
patch removes NULL casted to some pointer type.

The sematic patch used is:
@r@
type T;
@@
- (T *)NULL
+ NULL

Build tested it.

Signed-off-by: default avatarTapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f811be13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7028,7 +7028,7 @@ static char *dgap_sindex(char *string, char *group)
	char *ptr;

	if (!string || !group)
		return (char *) NULL;
		return NULL;

	if (*group == '^') {
		group++;
@@ -7049,7 +7049,7 @@ static char *dgap_sindex(char *string, char *group)
		}
	}

	return (char *) NULL;
	return NULL;
}

/*