aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/lowcomms.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2012-03-21 10:18:34 -0400
committerDavid Teigland <teigland@redhat.com>2012-03-21 10:18:34 -0400
commit1b189b8889b7d8e0bddc2655d171c43cfd344157 (patch)
treeebd751e8f336044299b1039520893a7b92651cee /fs/dlm/lowcomms.c
parent7210cb7a72a22303cdb225bd1aea28697a17bbae (diff)
dlm: last element of dlm_local_addr[] never used
The last element of dlm_local_addr[DLM_MAX_ADDR_COUNT] was not used because the loop ended at COUNT - 1. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r--fs/dlm/lowcomms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 0b3109ee4257..ad607996def0 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -1082,7 +1082,7 @@ static void init_local(void)
1082 int i; 1082 int i;
1083 1083
1084 dlm_local_count = 0; 1084 dlm_local_count = 0;
1085 for (i = 0; i < DLM_MAX_ADDR_COUNT - 1; i++) { 1085 for (i = 0; i < DLM_MAX_ADDR_COUNT; i++) {
1086 if (dlm_our_addr(&sas, i)) 1086 if (dlm_our_addr(&sas, i))
1087 break; 1087 break;
1088 1088