mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cmsfs-fuse: remove unused variable in add_record_ext()
Resolves Cppcheck style warning: [cmsfs-fuse/cmsfs-fuse.c:936]: (style) Variable 'i' is modified but its new value is never used. Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Jens Remus <jremus@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
@@ -923,7 +923,6 @@ static void set_record(struct file *f, int *record, off_t addr, int len,
|
||||
static void add_record_ext(struct record *rec, struct record_ext *ext)
|
||||
{
|
||||
struct record_ext *tmp;
|
||||
int i = 0;
|
||||
|
||||
if (rec->ext == NULL) {
|
||||
rec->ext = ext;
|
||||
@@ -931,9 +930,7 @@ static void add_record_ext(struct record *rec, struct record_ext *ext)
|
||||
ext->next = NULL;
|
||||
} else {
|
||||
tmp = rec->ext;
|
||||
i++;
|
||||
while (tmp->next != NULL) {
|
||||
i++;
|
||||
tmp = tmp->next;
|
||||
}
|
||||
tmp->next = ext;
|
||||
|
||||
Reference in New Issue
Block a user