aboutsummaryrefslogtreecommitdiffstats
path: root/api/api_storage.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-07-15 12:28:22 -0600
committerTom Rini <trini@konsulko.com>2024-07-15 12:28:22 -0600
commitaf3c2166d54cdb71914baece900095bad5a44862 (patch)
treefb3305c01cc31f9d81ff9822486daa6f6243f98e /api/api_storage.c
parentc00018507d9923b9137be4b89eb3c3110708a096 (diff)
parent3451b69e33dd3c862d9a843ed22c06c3184136b8 (diff)
downloadu-boot-af3c2166d54cdb71914baece900095bad5a44862.tar.gz
Merge patch series "api: Remove duplicate newlines"WIP/15Jul2024
This removes a number of duplicate newlines throughout the codebase.
Diffstat (limited to 'api/api_storage.c')
-rw-r--r--api/api_storage.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/api/api_storage.c b/api/api_storage.c
index 3d2d9d6ef4c..c663e7df942 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -26,7 +26,6 @@
#define errf(fmt, args...) do { printf("ERROR @ %s(): ", __func__); printf(fmt, ##args); } while (0)
-
#define ENUM_IDE 0
#define ENUM_USB 1
#define ENUM_SCSI 2
@@ -144,7 +143,6 @@ static int dev_stor_get(int type, int *more, struct device_info *di)
return found;
}
-
/* returns: ENUM_IDE, ENUM_USB etc. based on struct blk_desc */
static int dev_stor_type(struct blk_desc *dd)
@@ -159,7 +157,6 @@ static int dev_stor_type(struct blk_desc *dd)
return ENUM_MAX;
}
-
/* returns: 0/1 whether cookie points to some device in this group */
static int dev_is_stor(int type, struct device_info *di)
@@ -167,7 +164,6 @@ static int dev_is_stor(int type, struct device_info *di)
return (dev_stor_type(di->cookie) == type) ? 1 : 0;
}
-
static int dev_enum_stor(int type, struct device_info *di)
{
int found = 0, more = 0;
@@ -293,7 +289,6 @@ static int dev_stor_is_valid(int type, struct blk_desc *dd)
return 0;
}
-
int dev_open_stor(void *cookie)
{
int type = dev_stor_type(cookie);
@@ -307,7 +302,6 @@ int dev_open_stor(void *cookie)
return API_ENODEV;
}
-
int dev_close_stor(void *cookie)
{
/*
@@ -317,7 +311,6 @@ int dev_close_stor(void *cookie)
return 0;
}
-
lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start)
{
int type;
@@ -341,7 +334,6 @@ lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start
#endif /* defined(CONFIG_BLK) */
}
-
lbasize_t dev_write_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start)
{
struct blk_desc *dd = (struct blk_desc *)cookie;