]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
staging: comedi: amplc_pci224: remove 'inline' from pci224_gat_config()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 4 Apr 2017 10:32:26 +0000 (11:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 11:03:17 +0000 (13:03 +0200)
Let the compiler figure out whether `pci224_gat_confip()` should be
inlined by itself.

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

index 07555cffc414dafc9a2ae480bbcba531b86db664..7de2cd5f0f7e6e26df1140c09dc40be475793ab0 100644 (file)
 #define GAT_EXT                2       /* reserved (external gate input) */
 #define GAT_NOUTNM2    3       /* inverted output of channel-2 modulo total */
 
-static inline unsigned int pci224_gat_config(unsigned int chan,
-                                            unsigned int src)
+static unsigned int pci224_gat_config(unsigned int chan, unsigned int src)
 {
        return ((chan & 3) << 3) | (src & 7);
 }