Skip to content

Commit

Permalink
irda: irnet: add member name to the miscdevice declaration
Browse files Browse the repository at this point in the history
Since the struct miscdevice have many members, it is dangerous to init
it without members name relying only on member order.

This patch add member name to the init declaration.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
LABBE Corentin authored and David S. Miller committed Dec 17, 2016
1 parent 33de4d1 commit 616f6b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/irda/irnet/irnet_ppp.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ static const struct file_operations irnet_device_fops =
/* Structure so that the misc major (drivers/char/misc.c) take care of us... */
static struct miscdevice irnet_misc_device =
{
IRNET_MINOR,
"irnet",
&irnet_device_fops
.minor = IRNET_MINOR,
.name = "irnet",
.fops = &irnet_device_fops
};

#endif /* IRNET_PPP_H */

0 comments on commit 616f6b4

Please sign in to comment.