libcamera: Remove space between empty curly brackets
Remove spaces between empty curly brackets (replacing { } with {}) to
comply with the coding style. Fix one other coding style violation on
the lines touched by those fixes.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ public:
|
||||
protected:
|
||||
virtual int init() { return 0; }
|
||||
virtual int run() = 0;
|
||||
virtual void cleanup() { }
|
||||
virtual void cleanup() {}
|
||||
};
|
||||
|
||||
#define TEST_REGISTER(klass) \
|
||||
|
||||
@@ -26,13 +26,13 @@ using namespace std;
|
||||
class MediaDevicePrintTest : public Test
|
||||
{
|
||||
public:
|
||||
MediaDevicePrintTest() { }
|
||||
~MediaDevicePrintTest() { }
|
||||
MediaDevicePrintTest() {}
|
||||
~MediaDevicePrintTest() {}
|
||||
|
||||
protected:
|
||||
int init() { return 0; }
|
||||
int run();
|
||||
void cleanup() { }
|
||||
void cleanup() {}
|
||||
|
||||
private:
|
||||
int testMediaDevice(string deviceNode);
|
||||
@@ -137,7 +137,7 @@ int MediaDevicePrintTest::run()
|
||||
*/
|
||||
for (i = 0; i < MAX_MEDIA_DEV; i++) {
|
||||
string mediadev = deviceNode + to_string(i);
|
||||
struct stat pstat = { };
|
||||
struct stat pstat = {};
|
||||
|
||||
if (stat(mediadev.c_str(), &pstat))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user