]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: ft1000 : replace __attribute ((__packed__) with __packed
authorGeoff Darst <geoffda@comcast.net>
Sat, 29 Nov 2014 20:17:22 +0000 (13:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:48:10 +0000 (16:48 -0800)
Replace two instances of __attribute ((__packed__) with __packed macro
to address the warning found by the checkpatch.pl tool.

Signed-off-by: Geoff Darst <geoffda@comcast.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c

index 1150050617655c01d7caf926f1ffbf7c01663045..06b0e9cfb9b17011a579b18ed1c948ced4f5565a 100644 (file)
@@ -101,7 +101,7 @@ struct dsp_file_hdr {
        u32  version_data_offset;       /* Offset were scrambled version data begins. */
        u32  version_data_size; /* Size, in words, of scrambled version data. */
        u32  nDspImages;        /* Number of DSP images in file. */
-} __attribute__ ((packed));
+} __packed;
 
 struct dsp_image_info {
        u32  coff_date;         /* Date/time when DSP Coff image was built. */
@@ -112,7 +112,7 @@ struct dsp_image_info {
        u32  version;           /* Embedded version # of DSP code. */
        unsigned short checksum;        /* Dsp File checksum */
        unsigned short pad1;
-} __attribute__ ((packed));
+} __packed;
 
 void card_bootload(struct net_device *dev)
 {