staging: lustre: llite: set next only when needed in ll_dir_read
authorwang di <di.wang@intel.com>
Fri, 22 Jul 2016 02:44:04 +0000 (22:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 16:31:06 +0000 (18:31 +0200)
commitfb659ca1a6ef6a952da1af50a63210e8cfb6daca
tree3a1c7329e445b82895f18c2c9e4ed573d3abc23c
parentb1f048c147bb192b25e37591cfc8855aa3c34d38
staging: lustre: llite: set next only when needed in ll_dir_read

The variable next needs only to be set when done is false.

Signed-off-by: wang di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10761
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4906
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c