Cleans the method init_engine

Reasons:
- init_engine contains code after return statement,
  which is of no use.
- the statements used are also of no purpose as
  they use unavailable variables.

Change:
- Code lines after return statement are removed.

Change-Id: Ibfd1f0de1d9200c0f1a724345fa9ef744da1ce7e
Closes-Bug: #1261169
Merge "Cleans the method init_engine"