]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: jr3_pci: pass transform by reference
authorIan Abbott <abbotti@mev.co.uk>
Fri, 17 Feb 2017 11:09:17 +0000 (11:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:16:58 +0000 (09:16 +0100)
commitb4801ab30e0f083841cc3a5f3c7094d925459b60
treef70090d0a4495e8a7fa2a745637c6af5446559f8
parentd727a23fcef41c120718d122be1855bb4db90096
staging: comedi: jr3_pci: pass transform by reference

Local function `set_transforms` has a parameter of type `struct
jr3_pci_transform`.  This has a size 32 bytes, which is quite large for
passing around in a function call.  Change it to use type `const struct
jr3_pci_transform *`.  (In practice, it is probably inlined by the
compiler anyway, but doing this seems to save a few bytes.)

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c