@@ -112,9 +112,6 @@ static inline int event_wait(event_t *e, int timeout)
return ret;
}
-#define osd_init() 0
-#define osd_close()
-
static inline uint64_t time_stamp_us(void)
{
struct timeval curtime;
@@ -2941,9 +2941,6 @@ static void acmp_log_options(void)
static void __attribute__((constructor)) acmp_init(void)
{
- if (osd_init())
- return;
-
acmp_set_options();
acmp_log_options();
@@ -3076,9 +3076,6 @@ int main(int argc, char **argv)
if (daemon)
daemonize();
- if (osd_init())
- return -1;
-
acm_set_options();
if (acm_open_lock_file())
return -1;
@@ -985,14 +985,10 @@ static void parse_perf_arg(char *arg)
int main(int argc, char **argv)
{
- int op, ret;
+ int op, ret = 0;
int make_addr = 0;
int make_opts = 0;
- ret = osd_init();
- if (ret)
- goto out;
-
while ((op = getopt(argc, argv, "e::f:s:d:vcA::O::D:P::S:C:V")) != -1) {
switch (op) {
case 'e':
@@ -1068,8 +1064,6 @@ int main(int argc, char **argv)
if (!ret && make_opts)
ret = gen_opts();
- osd_close();
-out:
if (verbose || !(make_addr || make_opts) || ret)
printf("return status 0x%x\n", ret);
return ret;
Signed-off-by: Christoph Hellwig <hch@lst.de> --- ibacm/linux/osd.h | 3 --- ibacm/prov/acmp/src/acmp.c | 3 --- ibacm/src/acm.c | 3 --- ibacm/src/acme.c | 8 +------- 4 files changed, 1 insertion(+), 16 deletions(-)