ttm_flag_masked in ttm_bo_util.c
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
--
Quoted 9 lines · Shengquan
In function
ttm_bo_move_ttm,ttm_bo_move_memcpy, andttm_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_flagsis 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
--