瀏覽代碼

[SCSI] Missing const in sr_vendor

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>
Matthew Wilcox 19 年之前
父節點
當前提交
7b32b8e018
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/scsi/sr_vendor.c

+ 2 - 2
drivers/scsi/sr_vendor.c

@@ -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;