Skip to content

Commit

Permalink
[SCSI] Missing const in sr_vendor
Browse files Browse the repository at this point in the history
Fix compile warnings with current scsi-misc git tree

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Matthew Wilcox authored and James Bottomley committed Dec 17, 2005
1 parent 19c6509 commit 7b32b8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/sr_vendor.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ void sr_vendor_init(Scsi_CD *cd)
#ifndef CONFIG_BLK_DEV_SR_VENDOR
cd->vendor = VENDOR_SCSI3;
#else
char *vendor = cd->device->vendor;
char *model = cd->device->model;
const char *vendor = cd->device->vendor;
const char *model = cd->device->model;

/* default */
cd->vendor = VENDOR_SCSI3;
Expand Down

0 comments on commit 7b32b8e

Please sign in to comment.