Fix Klocwork errors in liblight

1. Fix null pointer de-reference klocwork error in liblight.
2. sprintf is part of ScanBan function. Replace sprintf with snprintf.

Change-Id: If408be6040481f5edda78cfeed477b30ab5b5e73
serrano: Kang KlteRIL

Change-Id: Iaf8643c173ba8620d37a808f6ffc48b95acc7ad9
serrano: Add Samsung UNSOL responses to RIL class

Change-Id: I63df5f4c311468e8686595f72708f039f6fe9f83
serrano: Remove dual-sim stuff

* Let the dual-sim guys deal with this in their device repo

Change-Id: I7b48cf4fe72a061bd119459100e56b4efaf838ef
serrano: Remove zcache from command line

* We're not building support for it in the new kernel

Change-Id: Iaeb204bd6d8e0068e88e71ec1c4d5a8097e63780
serrano: Enable ZSL in camera app again

Change-Id: I6b5b2699a7d5fe51710b2fe33cf0ef6d48504558
serrano: Enable denoise by default

Change-Id: I19f8fd1e8be23f15ed3b43bcdc1884689e952c87
serrano: Remove AGPS_USE_PSC

Change-Id: I59a652d99ca07700a31786f516f789c79bfd3481
serrano: Remove redundant settings

 * These are already the defaults
 * Also set critical battery warning to 5%

Change-Id: I898846a4ce9663372382d229a2e8f9ac22e48e15
serrano: Remove non-existent interactive node

Change-Id: I4480e7f962c6aae110090800f0682a52f5cec261
serrano-common: Define smart cover coordinates

Change-Id: Icdd5c6fe642b3d2d79541097e258914f9375bed8
serrano: Adjust smart cover coordinates

Change-Id: Ia7d671e981308ad791f355949e414baebfdd7fb8
Revert "serrano: Enable proximity wake option"

 * Some people complain it messes up screen on/off
   during calls. Turn it off by default and let those
   that wants it turn it on manually.

This reverts commit 785f0906a46bcaddae9e1d8e3fad40d7d97fcdb2.

Change-Id: Ia6eba90a61fdee55e6df6bf10cf7fbcf5fd45791
Revert "Revert "serrano: Enable proximity wake option""

This reverts commit 9b96aec70884806c8678576bbc457fb25f94b5c6.

Change-Id: I691d8ff5dc25e1ba7b425e36cb5cd00c9246b708
serrano: Update proprietary-files.txt

Change-Id: I72f0606bcae41d7a46ff6fbe6229f3543f6ac63e
serrano: Derp

Duplicate

Change-Id: Idacaa156f06a6b563039a536006f50c962c9d774
Revert "Revert "Use VERY_HIGH_QUALITY audio resampler""

 * 255 is a bogus value

This reverts commit 2481eeedb616fd9644e1f245635e4c66ebb23592.

Change-Id: I97f28661f118e7a3505afa41c98467c092bdb34c
serrano: Enable GPS XTRA servers

Change-Id: Id918728e2c6364088c02327999e3f623bdf42c05
serrano: Switch to TimeService blobs

Change-Id: I64b6a147f66459a8a348cc02a4cf00e9aad34fd7
Bugfix: This patch enables automount of usb sticks on serrano based devices
renamed sda into usbdisk

Change-Id: Ic802929660a31984d89e20bbb59667b1d8386f2e