summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap
diff options
context:
space:
mode:
authorTapasweni Pathak <tapaswenipathak@gmail.com>2014-10-30 18:23:11 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-30 13:09:15 -0700
commitd8d34a817bc0041ba2f0ee09e40c18c7161e2c2d (patch)
tree18466c19c53bfc573db94473cbe2f62e06f26c8f /drivers/staging/dgap
parentf811be139e9bcf014049d7aa93225a4dbea33c53 (diff)
downloadop-kernel-dev-d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d.zip
op-kernel-dev-d8d34a817bc0041ba2f0ee09e40c18c7161e2c2d.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index 105c3b8..ed356f1b 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;
}
/*
OpenPOWER on IntegriCloud