diff mbox

UBIFS: Remove unused variables in ubifs_budget_space

Message ID 535F040C.8010903@huawei.com
State Not Applicable
Headers show

Commit Message

hujianyang April 29, 2014, 1:44 a.m. UTC
I found two variables in ubifs_budget_space declared but not
use. This state remains since the first commit 1e5176. So just
remove them.

Signed-off-by: hujianyang <hujianyang@huawei.com>
---
 fs/ubifs/budget.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Artem Bityutskiy May 5, 2014, 6:43 a.m. UTC | #1
On Tue, 2014-04-29 at 09:44 +0800, hujianyang wrote:
> I found two variables in ubifs_budget_space declared but not
> use. This state remains since the first commit 1e5176. So just
> remove them.
> 
> Signed-off-by: hujianyang <hujianyang@huawei.com>

Applied to linux-ubifs.git tree, thanks!
diff mbox

Patch

diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c
index e8e01d7..eb997e9 100644
--- a/fs/ubifs/budget.c
+++ b/fs/ubifs/budget.c
@@ -437,7 +437,6 @@  static int calc_dd_growth(const struct ubifs_info *c,
  */
 int ubifs_budget_space(struct ubifs_info *c, struct ubifs_budget_req *req)
 {
-	int uninitialized_var(cmt_retries), uninitialized_var(wb_retries);
 	int err, idx_growth, data_growth, dd_growth, retried = 0;

 	ubifs_assert(req->new_page <= 1);