diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-14 13:01:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-14 16:05:45 -0400 |
commit | 91c4467e3c76b6d40ecc29ed71d3aa1e0285ab80 (patch) | |
tree | 7cca54d89d3e7e8915e8b59e603e4c024fcc8cf9 /net/caif | |
parent | 7970f1918ff685e64063b54474a9c1ac087aee4d (diff) |
caif_usb: use target structure member in memset
parent cfusbl was used instead of first structure member 'layer'
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r-- | net/caif/caif_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/caif/caif_usb.c b/net/caif/caif_usb.c index 0e487b07cf96..5cd44f001f64 100644 --- a/net/caif/caif_usb.c +++ b/net/caif/caif_usb.c | |||
@@ -92,7 +92,7 @@ static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN], | |||
92 | 92 | ||
93 | caif_assert(offsetof(struct cfusbl, layer) == 0); | 93 | caif_assert(offsetof(struct cfusbl, layer) == 0); |
94 | 94 | ||
95 | memset(this, 0, sizeof(struct cflayer)); | 95 | memset(&this->layer, 0, sizeof(this->layer)); |
96 | this->layer.receive = cfusbl_receive; | 96 | this->layer.receive = cfusbl_receive; |
97 | this->layer.transmit = cfusbl_transmit; | 97 | this->layer.transmit = cfusbl_transmit; |
98 | this->layer.ctrlcmd = cfusbl_ctrlcmd; | 98 | this->layer.ctrlcmd = cfusbl_ctrlcmd; |