driverdev-devel.linuxdriverproject.org archive mirror
 help / color / mirror / Atom feed
* staging: most: configfs: PAGE_SIZE char arrays?
@ 2019-11-26 19:30 Joe Perches
  2019-11-27 10:33 ` Christian.Gromm
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2019-11-26 19:30 UTC (permalink / raw)
  To: Christian Gromm; +Cc: devel, Greg Kroah-Hartman

drivers/staging/most/configfs.c:struct mdev_link {
drivers/staging/most/configfs.c-        struct config_item item;
drivers/staging/most/configfs.c-        struct list_head list;
drivers/staging/most/configfs.c-        bool create_link;
drivers/staging/most/configfs.c-        bool destroy_link;
drivers/staging/most/configfs.c-        u16 num_buffers;
drivers/staging/most/configfs.c-        u16 buffer_size;
drivers/staging/most/configfs.c-        u16 subbuffer_size;
drivers/staging/most/configfs.c-        u16 packets_per_xact;
drivers/staging/most/configfs.c-        u16 dbr_size;
drivers/staging/most/configfs.c-        char datatype[PAGE_SIZE];
drivers/staging/most/configfs.c-        char direction[PAGE_SIZE];
drivers/staging/most/configfs.c-        char name[PAGE_SIZE];
drivers/staging/most/configfs.c-        char device[PAGE_SIZE];
drivers/staging/most/configfs.c-        char channel[PAGE_SIZE];
drivers/staging/most/configfs.c-        char comp[PAGE_SIZE];
drivers/staging/most/configfs.c-        char comp_params[PAGE_SIZE];
drivers/staging/most/configfs.c-};

Why are all the char arrays size PAGE_SIZE ?
That seems completely unnecessary.


_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-27 10:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 19:30 staging: most: configfs: PAGE_SIZE char arrays? Joe Perches
2019-11-27 10:33 ` Christian.Gromm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).