Skip to contentSkip to conversation

isdn: kcapi: make capi_version const

PATCH New Bhumika Goyal 1 participant 1 message Aug 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isdn: kcapi: make capi_version const

Declare this structure as const as it is only used during a copy operation.

---
 drivers/isdn/capi/kcapi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/isdn/capi/kcapi.c +1 -1
index 9ca691d..46c189a 100644
@@ -55,7 +55,7 @@ struct capictr_event {
 
 /* ------------------------------------------------------------- */
 
-static struct capi_version driver_version = {2, 0, 1, 1 << 4};
+static const struct capi_version driver_version = {2, 0, 1, 1 << 4};
 static char driver_serial[CAPI_SERIAL_LEN] = "0004711";
 static char capi_manufakturer[64] = "AVM Berlin";
 
Signature · 1 line
1.9.1