diff --git a/index.html b/index.html
index 9f14bc9..240bf85 100644
--- a/index.html
+++ b/index.html
@@ -2699,8 +2699,8 @@ example:
149static int ioctl_init(void)
150{
151 dev_t dev;
-152 int alloc_ret = 0;
-153 int cdev_ret = 0;
+152 int alloc_ret = -1;
+153 int cdev_ret = -1;
154 alloc_ret = alloc_chrdev_region(&dev, 0, num_of_dev, DRIVER_NAME);
155
156 if (alloc_ret)
diff --git a/lkmpg-for-ht.html b/lkmpg-for-ht.html
index 9f14bc9..240bf85 100644
--- a/lkmpg-for-ht.html
+++ b/lkmpg-for-ht.html
@@ -2699,8 +2699,8 @@ example:
149static int ioctl_init(void)
150{
151 dev_t dev;
-152 int alloc_ret = 0;
-153 int cdev_ret = 0;
+152 int alloc_ret = -1;
+153 int cdev_ret = -1;
154 alloc_ret = alloc_chrdev_region(&dev, 0, num_of_dev, DRIVER_NAME);
155
156 if (alloc_ret)