Skip to content

Commit

Permalink
i2o: Remove the dangerous kobj_to_i2o_device macro
Browse files Browse the repository at this point in the history
This macro worked only when applied to variables named 'kobj'.
While this could have been fixed by simply renaming the macro argument,
a more type-safe replacement by an inline function would be preferred.
However, nobody uses this macro, so it's simpler to just remove it.

Signed-off-by: Ferenc Wagner <wferi@niif.hu>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Ferenc Wagner authored and Jens Axboe committed Mar 24, 2010
1 parent 181fdde commit 8a6d9b1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/i2o.h
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ extern int i2o_exec_lct_get(struct i2o_controller *);
#define to_i2o_driver(drv) container_of(drv,struct i2o_driver, driver)
#define to_i2o_device(dev) container_of(dev, struct i2o_device, device)
#define to_i2o_controller(dev) container_of(dev, struct i2o_controller, device)
#define kobj_to_i2o_device(kobj) to_i2o_device(container_of(kobj, struct device, kobj))

/**
* i2o_out_to_virt - Turn an I2O message to a virtual address
Expand Down

0 comments on commit 8a6d9b1

Please sign in to comment.