[LU-6508] llog_test.c::llog_test_8 unnecessary use of rc2 Created: 27/Apr/15  Updated: 16/Jun/20

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: easy, tests

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

It looks like there are a couple of spots in llog_test_8 that use rc2 redundantly sine rc would always be 0 in those cases:

/home/green/smt/git/lustre-release/lustre/obdclass/llog_test.c:995 llog_test_8() warn: we tested 'rc' before and it was 'false'
/home/green/smt/git/lustre-release/lustre/obdclass/llog_test.c:1026 llog_test_8() warn: we tested 'rc' before and it was 'false'

I feel like if we take them out and replace with just plain rc assignment, the code would become a tiny bit more readable.


Generated at Sat Feb 10 02:00:49 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.