Projects
Eulaceura:Factory
hsak
_service:obs_scm:0001-Fix-compile-error-with-gc...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-Fix-compile-error-with-gcc-12.03.patch of Package hsak
From aa351d931a20c4b7f438212c300b1ee5b0337221 Mon Sep 17 00:00:00 2001 From: Weifeng Su <suweifeng1@huawei.com> Date: Wed, 19 Jul 2023 14:41:07 +0000 Subject: [PATCH] Fix compile error with gcc 12.03 'bdev.pci == NULL' always false, Not need to check again. Signed-off-by: Weifeng Su <suweifeng1@huawei.com> --- src/ublock_bdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ublock_bdev.c b/src/ublock_bdev.c index ca7aa36..8ab3ef6 100755 --- a/src/ublock_bdev.c +++ b/src/ublock_bdev.c @@ -1406,7 +1406,7 @@ int ublock_get_SMART_info_by_esn(const char *esn, uint32_t nsid, struct ublock_S return rc; } - if (bdev.pci == NULL || strlen(bdev.pci) > UBLOCK_PCI_ADDR_MAX_LEN - 1) { + if (strlen(bdev.pci) > UBLOCK_PCI_ADDR_MAX_LEN - 1) { ublock_free_bdev(&bdev); (void)pthread_mutex_unlock(&g_esn_lock); SPDK_ERRLOG("[ublock] error PCI address string: %s\n", bdev.pci); -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2