Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Staging:D
mdadm
0086-Detail-Fixup-ugly-if-foo-abuse.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0086-Detail-Fixup-ugly-if-foo-abuse.patch of Package mdadm
From 776b199e41d10e344efc47008366ca46715c5acc Mon Sep 17 00:00:00 2001 From: Jes Sorensen <jsorensen@fb.com> Date: Wed, 12 Apr 2017 17:05:55 -0400 Subject: [PATCH] Detail: Fixup ugly if () foo() abuse Git-commit: 776b199e41d10e344efc47008366ca46715c5acc Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 Cosmetic change only Signed-off-by: Jes Sorensen <jsorensen@fb.com> Signed-off-by: Coly Li <colyli@suse.de> --- Detail.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Detail.c b/Detail.c index 8f74832..e40cd8f 100644 --- a/Detail.c +++ b/Detail.c @@ -141,13 +141,15 @@ int Detail(char *dev, struct context *c) } /* try to load a superblock. Try sra->devs first, then try ioctl */ - if (st && !info) for (d = 0, subdev = sra ? sra->devs : NULL; - d < max_disks || subdev; - subdev ? (void)(subdev = subdev->next) : (void)(d++)){ + if (st && !info) + for (d = 0, subdev = sra ? sra->devs : NULL; + d < max_disks || subdev; + subdev ? (void)(subdev = subdev->next) : (void)(d++)){ mdu_disk_info_t disk; char *dv; int fd2; int err; + if (subdev) disk = subdev->disk; else { -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor