Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1723145
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] [SCSI] esas2r: make default_sas_nvram const |
| Date | 2017-08-30 11:20 +0200 |
| Message-ID | <uk7kd-6sc-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Make this const as it is never modified.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/scsi/esas2r/esas2r_flash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/esas2r/esas2r_flash.c b/drivers/scsi/esas2r/esas2r_flash.c
index 7bd376d..f8414b5 100644
--- a/drivers/scsi/esas2r/esas2r_flash.c
+++ b/drivers/scsi/esas2r/esas2r_flash.c
@@ -54,7 +54,7 @@
#define ESAS2R_FS_DRVR_VER 2
-static struct esas2r_sas_nvram default_sas_nvram = {
+static const struct esas2r_sas_nvram default_sas_nvram = {
{ 'E', 'S', 'A', 'S' }, /* signature */
SASNVR_VERSION, /* version */
0, /* checksum */
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] [SCSI] esas2r: make default_sas_nvram const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-30 11:20 +0200
csiph-web