diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-04 10:44:42 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-04 11:08:29 -0600 |
commit | 6214b358a5502915d977d3f850d34bcad71c4cde (patch) | |
tree | 3f8849570e0ecbb60e9778ab38225705e1f46101 /src/peer.c | |
parent | global: satisfy check_patch.pl errors (diff) | |
download | wireguard-monolithic-historical-6214b358a5502915d977d3f850d34bcad71c4cde.tar.xz wireguard-monolithic-historical-6214b358a5502915d977d3f850d34bcad71c4cde.zip |
global: prefer sizeof(*pointer) when possible
Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ peer_create(struct wireguard_device *wg, if (wg->num_peers >= MAX_PEERS_PER_DEVICE) return NULL; - peer = kzalloc(sizeof(struct wireguard_peer), GFP_KERNEL); + peer = kzalloc(sizeof(*peer), GFP_KERNEL); if (!peer) return NULL; peer->device = wg; |