Skip to contentSkip to conversation

Staging: xgifb: Removes dead code and unused spinlock conditional compilation logic

PATCH In review Javier Martinez Canillas 2 participants 2 messages Feb 21, 2011 Kernel janitors

lore
Share & tools
lore
#0 lore raw

cover Staging: xgifb: Removes dead code and unused spinlock conditional compilation logic

In an earlier patch-set I was replacing a set of defines in staging xgifb driver that hides the synchronization mechanism used to access critical sections.

As Dan Carpenter pointed me, this code depende on the accelerator engine being activated (XGIfb_accel != 0), but in current driver this seems to be always deactivated (XGIfb_accel = 0).

So this patchset removes all the unused code and this spinlock conditional compilation logic only used in the acceleration mode code.

The patch-set is composed of the following patches:

[PATCH 1/3] Staging: xgifb: Removes dead code
[PATCH 2/3] Staging: xgifb: Remove unused functions
[PATCH 3/3] Staging: xgifb: Remove unused spinlock conditional compilation logic

Acked-by on the v1 series
#1 lore raw

Re: [PATCH 0/3] Staging: xgifb: Removes dead code and unused

Quoted 3 lines · Javier Martinez Canillas

[PATCH 1/3] Staging: xgifb: Removes dead code
[PATCH 2/3] Staging: xgifb: Remove unused functions
[PATCH 3/3] Staging: xgifb: Remove unused spinlock conditional compilation logic

Looks good. If you wanted to send some follow on patches, there are some related things you could delete as well.

1) All references to XGIfb_accel in drivers/staging/xgifb/XGI_accel.h and drivers/staging/xgifb/XGI_main_26.c

2) spinlock_t lockaccel; from the video_info struct in drivers/staging/xgifb/XGIfb.h

3) The fbcon_XGI_sync() function doesn't do anything. You can delete all references to it. Leave the ->fb_sync function pointer NULL.

regards,
dan carpenter