Skip to content

Commit

Permalink
sata_sil24: Use const
Browse files Browse the repository at this point in the history
Reduce data by using const.

$ size drivers/ata/sata_sil24.o*
   text	   data	    bss	    dec	    hex	filename
  12764	    614	   2688	  16066	   3ec2	drivers/ata/sata_sil24.o.new
  12320	   1058	   2688	  16066	   3ec2	drivers/ata/sata_sil24.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Joe Perches authored and Jeff Garzik committed Oct 8, 2011
1 parent 5e5a4f5 commit fc8cc1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ata/sata_sil24.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ union sil24_cmd_block {
struct sil24_atapi_block atapi;
};

static struct sil24_cerr_info {
static const struct sil24_cerr_info {
unsigned int err_mask, action;
const char *desc;
} sil24_cerr_db[] = {
Expand Down Expand Up @@ -1019,7 +1019,7 @@ static void sil24_error_intr(struct ata_port *ap)

/* deal with command error */
if (irq_stat & PORT_IRQ_ERROR) {
struct sil24_cerr_info *ci = NULL;
const struct sil24_cerr_info *ci = NULL;
unsigned int err_mask = 0, action = 0;
u32 context, cerr;
int pmp;
Expand Down

0 comments on commit fc8cc1d

Please sign in to comment.