jni: Resolve FM_DEVICE_PATH R/O open flag
* libfm_jni/FmRadioController.cpp:96:58:
error: 'open' has superfluous mode bits; missing O_CREAT?
* jni/android_hardware_fm.cpp:668:47:
error: 'open' has superfluous mode bits; missing O_CREAT?
Change-Id: I3f4f3bf4e27ea55539ec81b2e59b17be6dcb0892
diff --git a/jni/android_hardware_fm.cpp b/jni/android_hardware_fm.cpp
index 58bc762..22f9c3e 100644
--- a/jni/android_hardware_fm.cpp
+++ b/jni/android_hardware_fm.cpp
@@ -585,7 +585,7 @@
if(radio_path == NULL){
return FM_JNI_FAILURE;
}
- fd = open(radio_path, O_RDONLY, O_NONBLOCK);
+ fd = open(radio_path, O_RDONLY);
if(isCopy == JNI_TRUE){
env->ReleaseStringUTFChars(path, radio_path);
}