Skip to content

Commit

Permalink
USB: AccessRunner: avoid unnecessary memset
Browse files Browse the repository at this point in the history
Remove an explicit memset(.., 0, ...) to a variable allocated with kzalloc
(i.e.  'card_info' array of the structure 'instance').

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Christophe Jaillet authored and Greg Kroah-Hartman committed Jul 21, 2008
1 parent d249afd commit 33578bd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/atm/cxacru.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,6 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance,

instance->usbatm = usbatm_instance;
instance->modem_type = (struct cxacru_modem_type *) id->driver_info;
memset(instance->card_info, 0, sizeof(instance->card_info));

mutex_init(&instance->poll_state_serialize);
instance->poll_state = CXPOLL_STOPPED;
Expand Down

0 comments on commit 33578bd

Please sign in to comment.