diff options
author | Tapasweni Pathak <tapaswenipathak@gmail.com> | 2014-10-30 18:23:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-30 13:09:15 -0700 |
commit | d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d (patch) | |
tree | 18466c19c53bfc573db94473cbe2f62e06f26c8f /drivers/staging/dgap | |
parent | f811be139e9bcf014049d7aa93225a4dbea33c53 (diff) | |
download | lwn-d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d.tar.gz lwn-d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d.zip |
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: Tapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r-- | drivers/staging/dgap/dgap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index 105c3b8f4024..ed356f1bdece 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -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; } /* |