[U-Boot] curious snippet in drivers/mtd/dataflash.c

28 Dec
2016
28 Dec
'16
4:15 p.m.
not sure about this bit of code in that source file:
/* Set the environment according to the label...*/ if(protected == FLAG_PROTECT_INVALID) { dataflash_info[i].Device.area_list[j].protected = FLAG_PROTECT_INVALID; } else { dataflash_info[i].Device.area_list[j].protected = protected; }
is that not just setting the value to "protected" in both cases? what is the point of that conditional?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
3053
Age (days ago)
3053
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert P. J. Day