intel: Avoid 'may be used before initialised' warning.

When compile with -Os, the compile doesn't work out that the
variable is always initialised before usage, so we tell it.
This commit is contained in:
NeilBrown 2008-11-04 10:35:40 +11:00
parent 7f91af49ad
commit d9b420a5cd
1 changed files with 2 additions and 1 deletions

View File

@ -2483,7 +2483,8 @@ static __u8 imsm_check_degraded(struct intel_super *super, struct imsm_dev *dev,
* slot+1
*/
int i;
int insync;
/* gcc -Os complains that this is unused */
int insync = insync;
for (i = 0; i < map->num_members; i++) {
__u32 ord = get_imsm_ord_tbl_ent(dev, i);