summaryrefslogtreecommitdiffstats
path: root/drivers/input/gameport/ns558.c
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-02-10 10:45:52 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 19:51:31 +0100
commit3de3af130b75a79c7381573e5ea69cb59502023f (patch)
tree3c3f33898d84d16e5d75c1469338c1544870fd49 /drivers/input/gameport/ns558.c
parent[PATCH] proc_misc warning fix (diff)
downloadlinux-3de3af130b75a79c7381573e5ea69cb59502023f.tar.xz
linux-3de3af130b75a79c7381573e5ea69cb59502023f.zip
[PATCH] Remove unnecessary memset(0) calls after kzalloc() calls.
Delete the few remaining unnecessary calls to memset(0) after a call to kzalloc(). Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Cc: Andi Kleen <ak@suse.de> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: Adam Belay <ambx1@neo.rr.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/input/gameport/ns558.c')
-rw-r--r--drivers/input/gameport/ns558.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/gameport/ns558.c b/drivers/input/gameport/ns558.c
index f68dbe6f7f04..7b7a546323cf 100644
--- a/drivers/input/gameport/ns558.c
+++ b/drivers/input/gameport/ns558.c
@@ -151,7 +151,6 @@ static int ns558_isa_probe(int io)
return -ENOMEM;
}
- memset(ns558, 0, sizeof(struct ns558));
ns558->io = io;
ns558->size = 1 << i;
ns558->gameport = port;