Skip to content

Commit d3df0ac

Browse files
jgross1axboe
authored andcommitted
xen/blkfront: remove unused macros
Remove some macros not used anywhere. Acked-by: Roger Pau Monné <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent eca53cb commit d3df0ac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/block/xen-blkfront.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,9 @@ static DEFINE_SPINLOCK(minor_lock);
251251
#define GRANTS_PER_INDIRECT_FRAME \
252252
(XEN_PAGE_SIZE / sizeof(struct blkif_request_segment))
253253

254-
#define PSEGS_PER_INDIRECT_FRAME \
255-
(GRANTS_INDIRECT_FRAME / GRANTS_PSEGS)
256-
257254
#define INDIRECT_GREFS(_grants) \
258255
DIV_ROUND_UP(_grants, GRANTS_PER_INDIRECT_FRAME)
259256

260-
#define GREFS(_psegs) ((_psegs) * GRANTS_PER_PSEG)
261-
262257
static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo);
263258
static void blkfront_gather_backend_features(struct blkfront_info *info);
264259
static int negotiate_mq(struct blkfront_info *info);

0 commit comments

Comments
 (0)