Skip to contentSkip to conversation

ttm_flag_masked in ttm_bo_util.c

DISCUSSION Yuan, Shengquan 2 participants 2 messages Jan 11, 2010

lore
Share & tools
lore
#0 lore raw

In function ttm_bo_move_ttm, ttm_bo_move_memcpy, and ttm_bo_move_accel_cleanup, just before function exits, there is:

                 ttm_flag_masked(&save_flags, new_mem->placement,

TTM_PL_MASK_MEMTYPE);

Is it needed because save_flags is just a local variable?

Thanks
Austin

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--

#1 lore raw
Quoted 9 lines · Shengquan

In function ttm_bo_move_ttm, ttm_bo_move_memcpy, and ttm_bo_move_accel_cleanup, just before function exits, there is:

                 ttm_flag_masked(&save_flags, new_mem->placement,

TTM_PL_MASK_MEMTYPE);

Is it needed because save_flags is just a local variable?

Thanks
Austin

Looks like dead code, likely left over of some cut & paste :) If Thomas confirms i think you can propose a patch to nuke those.

Cheers,
Jerome

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--