Commit da5ecb4d authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman
Browse files

staging/lustre: Fix braces {} style



This fixes all checkpatch form of this from the Lustre tree:
CHECK: braces {} should be used on all arms of this statement

Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5f479924
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -178,9 +178,10 @@ restart_fixup:
				if (n_range->lsr_end <= c_range->lsr_end) {
					*n_range = *c_range;
					fld_cache_entry_delete(cache, f_curr);
				} else
				} else {
					n_range->lsr_start = c_range->lsr_end;
				}
			}

			/* we could have overlap over next
			 * range too. better restart.
+2 −1
Original line number Diff line number Diff line
@@ -1001,8 +1001,9 @@ static inline int lu_dirent_calc_size(int namelen, __u16 attr)

		size = (sizeof(struct lu_dirent) + namelen + align) & ~align;
		size += sizeof(struct luda_type);
	} else
	} else {
		size = sizeof(struct lu_dirent) + namelen;
	}

	return (size + 7) & ~7;
}
+2 −1
Original line number Diff line number Diff line
@@ -490,9 +490,10 @@ static inline int obd_setup(struct obd_device *obd, struct lustre_cfg *cfg)
				obd->obd_lu_dev = d;
				d->ld_obd = obd;
				rc = 0;
			} else
			} else {
				rc = PTR_ERR(d);
			}
		}
		lu_context_exit(&session_ctx);
		lu_context_fini(&session_ctx);

+11 −9
Original line number Diff line number Diff line
@@ -1496,9 +1496,10 @@ free_lmv:
					       cmd == LL_IOC_MDC_GETINFO)) {
				rc = 0;
				goto skip_lmm;
			} else
			} else {
				goto out_req;
			}
		}

		if (cmd == IOC_MDC_GETFILESTRIPE ||
		    cmd == LL_IOC_LOV_GETSTRIPE) {
@@ -1717,9 +1718,10 @@ out_quotactl:
			if (!rc)
				fd->fd_flags |= LL_FILE_RMTACL;
			return rc;
	    } else
		} else {
			return 0;
		}
	}
#endif
	case LL_IOC_GETOBDCOUNT: {
		int count, vallen;
+2 −1
Original line number Diff line number Diff line
@@ -323,8 +323,9 @@ static struct ll_inode_info *ll_close_next_lli(struct ll_close_queue *lcq)
		lli = list_entry(lcq->lcq_head.next, struct ll_inode_info,
				 lli_close_list);
		list_del_init(&lli->lli_close_list);
	} else if (atomic_read(&lcq->lcq_stop))
	} else if (atomic_read(&lcq->lcq_stop)) {
		lli = ERR_PTR(-EALREADY);
	}

	spin_unlock(&lcq->lcq_lock);
	return lli;
Loading